Update makeOVPN.sh

This commit is contained in:
Orazio 2018-09-04 12:45:46 +02:00 committed by GitHub
parent 6c9650a642
commit 46712e6609
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,17 +121,6 @@ function keyPASS() {
expect eof
EOF
#Convert key to aes128
KEY_FILE="pki/private/${NAME}${KEY}"
expect << EOF
set timeout -1
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" }
expect eof
EOF
cd pki || exit
}