File tree Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ if [ -z "$EASYRSA_PKI" ]; then
2222fi
2323
2424cn=" $1 "
25- parm=" $2 "
2625
2726if [ ! -f " $EASYRSA_PKI /private/${cn} .key" ]; then
2827 echo " Unable to find \" ${cn} \" , please try again or generate the key first" >&2
@@ -37,25 +36,4 @@ revoke_client_certificate(){
3736 chmod 644 " $OPENVPN /crl.pem"
3837}
3938
40- remove_files (){
41- rm -v " $EASYRSA_PKI /issued/${1} .crt"
42- rm -v " $EASYRSA_PKI /private/${1} .key"
43- rm -v " $EASYRSA_PKI /reqs/${1} .req"
44- }
45-
46- case " $parm " in
47- " remove" )
48- revoke_client_certificate " $cn "
49- remove_files " $cn "
50- ;;
51- " " | " keep" )
52- revoke_client_certificate " $cn "
53- ;;
54- * )
55- echo " When revoking a client certificate, this script let you choose if you want to remove the corresponding crt, key and req files." >&2
56- echo " Pease note that the removal of those files is required if you want to generate a new client certificate using the revoked certificate's CN." >&2
57- echo " 1. keep (default): Keep the files." >&2
58- echo " 2. remove: Remove the files." >&2
59- echo " Please specify one of those options as second parameter." >&2
60- ;;
61- esac
39+ revoke_client_certificate " $cn "
You can’t perform that action at this time.
0 commit comments