makeOVPN.sh change 3DES to AES-128

This commit is contained in:
Zeik0s 2018-03-14 21:55:05 +01:00 committed by GitHub
parent aa625b98ff
commit b8e5f318b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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