Keep a backup of client keys

This commit is contained in:
Bob Mottram 2017-09-26 23:05:01 +01:00
parent 57f8b11c07
commit d35b5af059
1 changed files with 3 additions and 0 deletions

View File

@ -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