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 Install SSH in Windows 10/11
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.

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

Virtualbox Change Storage Size

Changing the storage size of a virtual machine in VirtualBox involves a few steps. Here’s a general guide. Backup your Virtual Machine (VM) Before...
habibzain
35 sec read

Easy Setup Logrotate Nginx Ubuntu

Log rotation is an important aspect of managing log files on a Linux system, including those generated by Nginx. Logrotate is a utility that...
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