mirror of
https://github.com/pivpn/pivpn.git
synced 2025-04-24 08:10:10 +00:00
Merge branch 'master' into test
This commit is contained in:
commit
0b4464b3ee
4 changed files with 141 additions and 116 deletions
|
@ -120,18 +120,6 @@ function keyPASS() {
|
|||
expect "Verifying - Enter PEM pass phrase" { send -- "${PASSWD}\r" }
|
||||
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
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue