3 # revoke a certificate, regenerate CRL,
4 # and verify revocation
10 echo "usage: revoke-full <common-name>";
14 if [ "$KEY_DIR" ]; then
22 # revoke key and generate a new CRL
23 $OPENSSL ca
-revoke "$1.crt" -config "$KEY_CONFIG"
25 # generate a new CRL -- try to be compatible with
27 $OPENSSL ca
-gencrl -out "$CRL" -config "$KEY_CONFIG"
28 if [ -e export-ca.crt
]; then
29 cat export-ca.crt
"$CRL" >"$RT"
31 cat ca.crt
"$CRL" >"$RT"
34 # verify the revocation
35 $OPENSSL verify
-CAfile "$RT" -crl_check "$1.crt"
37 echo 'Please source the vars script first (i.e. "source ./vars")'
38 echo 'Make sure you have edited it to reflect your configuration.'