Skip to content

Remove password for a password protected SSL private key

Verify the private key is password protected

PKCS#8 format

----BEGIN ENCRYPTED PRIVATE KEY-----
......BASE64 私钥内容......
-----END ENCRYPTED PRIVATE KEY-----

Openssl ASN format

-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info:DES-EDE3-CBC,4D5D1AF13367D726
......BASE64 私钥内容......
-----END RSA PRIVATE KEY-----

Remove password

openssl rsa -in encryedprivate.key -out unencryedprivate.key

Disclaimer
  1. License under CC BY-NC 4.0
  2. Copyright issue feedback me#imzye.me, replace # with @
  3. Not all the commands and scripts are tested in production environment, use at your own risk
  4. No privacy information is collected here
Try my iOS App