Commit 08c49b6d authored by Leigh Stoller's avatar Leigh Stoller

Add build and install of pem file for pcplab nodes.

parent 1bed1576
......@@ -12,7 +12,7 @@ SUBDIR = ssl
include $(OBJDIR)/Makeconf
all: emulab.pem server.pem localnode.pem ronnode.pem
all: emulab.pem server.pem localnode.pem ronnode.pem wanode.pem
include $(TESTBED_SRCDIR)/GNUmakerules
......@@ -87,6 +87,9 @@ localnode.pem: dirsmade localnode.cnf ca.cnf $(SRCDIR)/mkclient.sh
ronnode.pem: dirsmade ronnode.cnf ca.cnf $(SRCDIR)/mkclient.sh
$(SRCDIR)/mkclient.sh ronnode
pcplab.pem: dirsmade pcplab.cnf ca.cnf $(SRCDIR)/mkclient.sh
$(SRCDIR)/mkclient.sh pcplab
dirsmade:
-mkdir -p certs
-mkdir -p newcerts
......@@ -102,10 +105,16 @@ dirsmade:
install:
@echo "BE VERY CAREFUL! INSTALLING NEW CERTS CAN CAUSE DISASTER!"
boss-install: $(INSTALL_ETCDIR)/emulab.pem \
boss-installX: $(INSTALL_ETCDIR)/emulab.pem \
$(INSTALL_ETCDIR)/server.pem \
$(INSTALL_ETCDIR)/pcplab.pem \
$(INSTALL_ETCDIR)/capture.pem
$(INSTALL_DATA) localnode.pem $(INSTALL_ETCDIR)/client.pem
chmod 640 $(INSTALL_ETCDIR)/emulab.pem
chmod 640 $(INSTALL_ETCDIR)/server.pem
chmod 640 $(INSTALL_ETCDIR)/client.pem
chmod 640 $(INSTALL_ETCDIR)/pcplab.pem
chmod 640 $(INSTALL_ETCDIR)/capture.pem
client-install:
$(INSTALL_DATA) localnode.pem /etc/testbed/client.pem
......
[ req ]
prompt = no
default_bits = 1024
default_keyfile = privkey.pem
distinguished_name = req_distinguished_name
attributes = req_attributes
x509_extensions = v3_ca # The extentions to add to the self signed cert
encrypt_key = no
string_mask = nombstr
[ req_distinguished_name ]
C = US
ST = Utah
L = Salt Lake City
O = Utah Network Testbed
# tmcd uses OU and CN for verification.
OU = pcplab
CN = @BOSSNODE@
emailAddress = @TBOPSEMAIL@
[ req_attributes ]
[ v3_ca ]
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid:always,issuer:always
basicConstraints = CA:true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment