Keep a backup of client keys
This commit is contained in:
parent
57f8b11c07
commit
d35b5af059
|
@ -340,6 +340,9 @@ function create_user_vpn_key {
|
|||
|
||||
chown $username:$username $user_vpn_cert_file
|
||||
|
||||
# keep a backup
|
||||
cp $user_vpn_cert_file /etc/openvpn/easy-rsa/keys/$username.ovpn
|
||||
|
||||
#rm /etc/openvpn/easy-rsa/keys/$username.crt
|
||||
#rm /etc/openvpn/easy-rsa/keys/$username.csr
|
||||
shred -zu /etc/openvpn/easy-rsa/keys/$username.key
|
||||
|
|
Loading…
Reference in New Issue