ofp-pki: Give controller and switch CA distinctive names.
authorBen Pfaff <blp@nicira.com>
Tue, 16 Sep 2008 21:13:22 +0000 (14:13 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 16 Sep 2008 23:06:45 +0000 (16:06 -0700)
This makes it possible to tell them apart by looking at the certificates,
instead of having to just know which is which.

utilities/ofp-pki.in

index 74a53c60114ff9f8602181e3599cbafd78befef2..ca927c02c110494f7e61bbb3273516626c93e34d 100755 (executable)
@@ -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