mirror of
https://github.com/pivpn/pivpn.git
synced 2025-04-24 00:00:11 +00:00
commit
b7c28af844
2 changed files with 3 additions and 3 deletions
|
@ -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" }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue