[Level 2] How to change passphrase by openssl in.
If your company give you the key and cert for openvpn,
but somehow you want to change the passphrase that you easy to remember.
You can use openssl to modify the passphrase.
The sample as below:
Wish this helps.
regards,
Stanley Huang
but somehow you want to change the passphrase that you easy to remember.
You can use openssl to modify the passphrase.
The sample as below:
Step 1, Remove the password:
# openssl rsa -in client.key -out client2.key
# openssl rsa -in client.key -out client2.key
(It will prompt you for the current password, and write the decrypted key to client2.key)
Step 2, Add or change the password:
# openssl rsa -in client.key -out client2.key -des3
# openssl rsa -in client.key -out client2.key -des3
(It will prompt you for the current password (if any), then for the new password, and then write the encrypted key to client2.key)
Wish this helps.
regards,
Stanley Huang
Comments
Post a Comment