Skip to content

Commit

Permalink
makeOVPN.sh change 3DES to AES-128
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeik0s committed Mar 14, 2018
1 parent aa625b9 commit b8e5f31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/makeOVPN.sh
Expand Up @@ -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" }
Expand Down

2 comments on commit b8e5f31

@d0nlab
Copy link

@d0nlab d0nlab commented on b8e5f31 Mar 25, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made the change to -aes128 but it still creates 3des. What am I doing wrong?

@Zeik0s
Copy link
Contributor Author

@Zeik0s Zeik0s commented on b8e5f31 Apr 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to change the script makeOVPN.sh in /opt/pivpn/

Please sign in to comment.