From: Ben Pfaff Date: Tue, 16 Sep 2008 21:13:22 +0000 (-0700) Subject: ofp-pki: Give controller and switch CA distinctive names. X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5c794030b371a2151fff986fe2724ef98b173df5;p=sliver-openvswitch.git ofp-pki: Give controller and switch CA distinctive names. This makes it possible to tell them apart by looking at the certificates, instead of having to just know which is which. --- diff --git a/utilities/ofp-pki.in b/utilities/ofp-pki.in index 74a53c601..ca927c02c 100755 --- a/utilities/ofp-pki.in +++ b/utilities/ofp-pki.in @@ -171,7 +171,7 @@ EOF # Write CA configuration file. if test ! -e ca.cnf; then - cat > ca.cnf <<'EOF' + sed "s/@ca@/$ca/g" > ca.cnf <<'EOF' [ req ] prompt = no distinguished_name = req_distinguished_name @@ -181,8 +181,8 @@ C = US ST = CA L = Palo Alto O = OpenFlow -OU = OpenFlow -CN = OpenFlow +OU = @ca@ +CN = OpenFlow @ca@ CA Certificate [ ca ] default_ca = the_ca