summaryrefslogtreecommitdiff
path: root/ssltools/easy-rsa/revoke-crt
diff options
context:
space:
mode:
Diffstat (limited to 'ssltools/easy-rsa/revoke-crt')
-rw-r--r--ssltools/easy-rsa/revoke-crt18
1 files changed, 18 insertions, 0 deletions
diff --git a/ssltools/easy-rsa/revoke-crt b/ssltools/easy-rsa/revoke-crt
new file mode 100644
index 0000000..35b071a
--- /dev/null
+++ b/ssltools/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