Merge pull request #412 from tuaminx/issue-171-convert-key-to-des3

Issue-171: Error using iOS OpenVPN
This commit is contained in:
redfast00 2017-11-24 22:57:12 +01:00 committed by GitHub
commit 041d410bc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,6 +121,17 @@ function keyPASS() {
expect eof expect eof
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 cd pki || exit
} }