diff options
Diffstat (limited to 'easy-rsa/revoke-crt')
-rw-r--r-- | easy-rsa/revoke-crt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/easy-rsa/revoke-crt b/easy-rsa/revoke-crt new file mode 100644 index 0000000..35b071a --- /dev/null +++ b/easy-rsa/revoke-crt @@ -0,0 +1,18 @@ +#!/bin/sh + +# +# revoke a certificate +# +# + +if test $# -ne 1; then + echo "usage: revoke-crt <file.crt>"; + exit 1 +fi + +if test $KEY_DIR; then + cd $KEY_DIR && \ + openssl ca -revoke $1 -config $KEY_CONFIG +else + echo you must define KEY_DIR +fi |