From 5c794030b371a2151fff986fe2724ef98b173df5 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 16 Sep 2008 14:13:22 -0700 Subject: [PATCH] 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. --- utilities/ofp-pki.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utilities/ofp-pki.in b/utilities/ofp-pki.in index 74a53c60..ca927c02 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 -- 2.30.2