mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
makeOVPN.sh change 3DES to AES-128
This commit is contained in:
parent
aa625b98ff
commit
b8e5f318b6
1 changed files with 2 additions and 2 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" }
|
||||
|
|
Loading…
Reference in a new issue