summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2013-04-03 13:25:03 -0700
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2013-04-03 13:25:03 -0700
commit1f003e68b435288eed05fe0fb8c649b866fa0c4b (patch)
tree2df0045fc507ecacc7159973393a7f84382f6c00
parentfd72d61332d4600b6c2182afd367781438b412dc (diff)
downloadcash-1f003e68b435288eed05fe0fb8c649b866fa0c4b.tar.gz
cash-1f003e68b435288eed05fe0fb8c649b866fa0c4b.zip
revoke.sh: Adding optional post-revocation script call.
-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