habibzain Just husband, father and enthusiastic men about System Administration. Love to write short article about it. Perhaps can help and be useful for others.

Remove Private Key Passphrase with openSSL

41 sec read

Remove Private Key Passphrase with openSSL

In some circumstances there may be a need to have the certificate private key unencrypted. To remove private key passphrase password. Follow this procedure below:

  1. Copy the private key file into your OpenSSL directory (or you can specify the path in the command line).
  2. Run this command using OpenSSL:
openssl rsa -in [file1.key] -out [file2.key] 
  • file1.key original key that protected password.
  • file2.key result key not protected password.

Enter the passphrase and [file2.key] is now the unprotected private key.

The output file:  [file2.key] should be unencrypted.

To verify this open the file using a text editor (such as MS Notepad) and view the headers.

Encrypted headers look like this:

—–BEGIN RSA PRIVATE KEY—–
Proc-Type: 4,ENCRYPTED DEK-Info: DES-EDE3-CBC,
6AC307785DD187EF…
—–END RSA PRIVATE KEY—–

Unencrypted headers look like this:

 —–BEGIN RSA PRIVATE KEY—–
6AC307785DD187EF…
—–END RSA PRIVATE KEY—–

That is simple method to remove passphrase private key. May be it’s helpful, please feel free to leave a comment if you have any questions and I’ll appreciate it.

Resource: https://help.cloud66.com/maestro/how-to-guides/security/remove-passphrase.html

See also  How to Remote SSH to Google Cloud VM Instance
habibzain Just husband, father and enthusiastic men about System Administration. Love to write short article about it. Perhaps can help and be useful for others.

Centos Failed Update Kernel

Today I did a kernel update on my server with Centos 7 OS. At the end of the update process, I found a kernel...
habibzain
1 min read

Easy Fix Missing mirrorlist http://mirrorlist.centos.org on CentOS 7

When running yum update or command that utilize the yum system, errors similar to the following are produced: If you’re encountering issues with the...
habibzain
1 min read

Easy Create Laravel Project with Composer

Requirement Laravel, a popular PHP framework, is renowned for its elegant syntax and robust features, making it a top choice for web developers. One...
habibzain
1 min read

Leave a Reply

Your email address will not be published. Required fields are marked *

Never miss good article from us, get weekly updates in your inbox