diff --git a/scripts/makeOVPN.sh b/scripts/makeOVPN.sh index d9101f3..31dbb23 100644 --- a/scripts/makeOVPN.sh +++ b/scripts/makeOVPN.sh @@ -121,6 +121,17 @@ function keyPASS() { expect eof EOF + #Convert key to des3 + KEY_FILE="pki/private/${NAME}${KEY}" + expect << EOF + set timeout -1 + spawn openssl rsa -in ${KEY_FILE} -des3 -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 }