From 4afcbf84726868ef35da6aaf7d50a841e6275d95 Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Thu, 8 Dec 2011 19:43:54 -0800 Subject: SPKAC HTTP provisioning. --- signcsr.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'signcsr.sh') diff --git a/signcsr.sh b/signcsr.sh index ca50b22..b48ad45 100755 --- a/signcsr.sh +++ b/signcsr.sh @@ -38,5 +38,7 @@ fi if [ -e "$CA"/certs/"$SERIAL".pem ]; then # openssl lacks useful exit status codes, so we check to see if it actually did anything instead. mv -i "$1" "$CA"/signed/$NAME.csr ln "$CA"/certs/"$SERIAL".pem "$CA"/signed/"$NAME".crt # so we can find the certificate by name as well as serial - echo "Use ./mailcert.sh $NAME [emailaddress] to use sendmail to deliver the CA and user certificate." + openssl x509 -in "$CA"/certs/"$SERIAL".pem -outform DER -out "$CA"/signed/"$NAME".der # Chrome compatible + echo "* Web: $CA/signed/$NAME.der with Content-type: application/x-x509-user-cert is suggested." + echo "* Email: use ./mailcert.sh $NAME [emailaddress] to use sendmail to deliver the CA and user certificate as PEM MIME attachments." fi -- cgit v1.2.3