bin/make-ca-key, etc/issuer: Split the issuer name out.
[ca] / bin / make-ca-key
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