bin/make-ca-key, etc/issuer: Split the issuer name out.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 31 Jul 2011 17:27:03 +0000 (18:27 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 31 Jul 2011 17:27:03 +0000 (18:27 +0100)
Makes the configuration-file nature of the issuer name more apparent.

bin/make-ca-key
etc/issuer [new file with mode: 0644]

index f563bd9..bb3f83b 100755 (executable)
@@ -34,15 +34,7 @@ echo 01 >state/crlnumber
 
 ## Set the CA subject name.  It won't fit on one line, and there's no
 ## good way of continuing it.  Have fun parsing the sed.
-subject=$(sed -n 's:^:/:;1h;2,$H;${x;s/\n//g;p;}' <<EOF
-C=GB
-ST=Cambridgeshire
-O=distorted.org.uk
-OU=Certificate Authority
-CN=distorted.org.uk top-level CA
-emailAddress=ca@distorted.org.uk
-EOF
-)
+subject=$(sed -n 's:^:/:;1h;2,$H;${x;s/\n//g;p;}' <etc/issuer)
 
 ## Build the new CA key and certificate.
 umask 027
diff --git a/etc/issuer b/etc/issuer
new file mode 100644 (file)
index 0000000..bd38de8
--- /dev/null
@@ -0,0 +1,6 @@
+C=GB
+ST=Cambridgeshire
+O=distorted.org.uk
+OU=Certificate Authority
+CN=distorted.org.uk top-level CA
+emailAddress=ca@distorted.org.uk