aboutsummaryrefslogtreecommitdiff
path: root/easy-rsa/revoke-full
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-11-02 18:09:01 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-11-02 18:09:01 +0000
commit8810c26cc5782addcf1f0a40212a7d1ebe827e6f (patch)
treecdf818d2e7f8058386fba0c2a989826c4102da8c /easy-rsa/revoke-full
parentVERSION 2.1_beta6 (diff)
downloadopenvpn-8810c26cc5782addcf1f0a40212a7d1ebe827e6f.tar.xz
Moved easy-rsa 2.0 scripts to easy-rsa/2.0 to
be compatible with 2.0.x distribution. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@757 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'easy-rsa/revoke-full')
-rwxr-xr-xeasy-rsa/revoke-full39
1 files changed, 0 insertions, 39 deletions
diff --git a/easy-rsa/revoke-full b/easy-rsa/revoke-full
deleted file mode 100755
index 9dc9b1e..0000000
--- a/easy-rsa/revoke-full
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-# revoke a certificate, regenerate CRL,
-# and verify revocation
-
-CRL="crl.pem"
-RT="revoke-test.pem"
-
-if [ $# -ne 1 ]; then
- echo "usage: revoke-full <common-name>";
- exit 1
-fi
-
-if [ "$KEY_DIR" ]; then
- cd "$KEY_DIR"
- rm -f "$RT"
-
- # set defaults
- export KEY_CN=""
- export KEY_OU=""
-
- # revoke key and generate a new CRL
- openssl ca -revoke "$1.crt" -config "$KEY_CONFIG"
-
- # generate a new CRL -- try to be compatible with
- # intermediate PKIs
- openssl ca -gencrl -out "$CRL" -config "$KEY_CONFIG"
- if [ -e export-ca.crt ]; then
- cat export-ca.crt "$CRL" >"$RT"
- else
- cat ca.crt "$CRL" >"$RT"
- fi
-
- # verify the revocation
- openssl verify -CAfile "$RT" -crl_check "$1.crt"
-else
- echo 'Please source the vars script first (i.e. "source ./vars")'
- echo 'Make sure you have edited it to reflect your configuration.'
-fi