mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
commit
b7c28af844
2 changed files with 3 additions and 3 deletions
|
@ -121,11 +121,11 @@ function keyPASS() {
|
|||
expect eof
|
||||
EOF
|
||||
|
||||
#Convert key to des3
|
||||
#Convert key to aes128
|
||||
KEY_FILE="pki/private/${NAME}${KEY}"
|
||||
expect << EOF
|
||||
set timeout -1
|
||||
spawn openssl rsa -in ${KEY_FILE} -des3 -out ${KEY_FILE}
|
||||
spawn openssl rsa -in ${KEY_FILE} -aes128 -out ${KEY_FILE}
|
||||
expect "Enter pass phrase" { send "${PASSWD}\r" }
|
||||
expect "Enter PEM pass phrase" { send "${PASSWD}\r" }
|
||||
expect "Verifying - Enter PEM pass phrase" { send "${PASSWD}\r" }
|
||||
|
|
|
@ -17,7 +17,7 @@ push "block-outside-dns"
|
|||
# overriding but not wiping out the original default gateway.
|
||||
push "redirect-gateway def1"
|
||||
client-to-client
|
||||
keepalive 10 120
|
||||
keepalive 1800 3600
|
||||
remote-cert-tls client
|
||||
tls-version-min 1.2
|
||||
tls-auth /etc/openvpn/easy-rsa/pki/ta.key 0
|
||||
|
|
Loading…
Reference in a new issue