summaryrefslogtreecommitdiff
path: root/revoke.sh
diff options
context:
space:
mode:
Diffstat (limited to 'revoke.sh')
-rwxr-xr-xrevoke.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/revoke.sh b/revoke.sh
index 8e45ab7..efd5a3c 100755
--- a/revoke.sh
+++ b/revoke.sh
@@ -31,7 +31,10 @@ openssl ca -config "$OPENSSL_CONFIG" -gencrl -out "$CA"/ca/"$CA".crl
echo
openssl crl -in "$CA"/ca/"$CA".crl -text -noout
echo
-echo Apache: SSLCARevocationFile "$PWD"/"$CA"/ca/"$CA".crl
-echo nginx: ssl_crl "$PWD"/"$CA"/ca/"$CA".crl
-echo Lighttpd: sucks to be you!
-
+if [ -x ./post-revoke ]; then
+ ./post-revoke "$CA"/signed/"$NAME".der
+else
+ echo Apache: SSLCARevocationFile "$PWD"/"$CA"/ca/"$CA".crl
+ echo nginx: ssl_crl "$PWD"/"$CA"/ca/"$CA".crl
+ echo Lighttpd: sucks to be you!
+fi