Update makeOVPN.sh

This commit is contained in:
Orazio 2018-09-04 12:45:46 +02:00 committed by redfast00
parent ad41def1d7
commit e2cde58cc8

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
}