The explanation for this command, this command extract the private key from the .pfx file. Now we need to type the import password of the .pfx file. This password is used to protect the keypair which created for .pfx file. After entering import password OpenSSL requests to type another password twice. This new password is to protect the .key file.
techrunnr@ubuntu:~/Downloads/SSL-certificate$ openssl pkcs12 -in samplefile.pfx -nocerts -out samplefileencrypted.key
Enter Import Password:
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:
techrunnr@ubuntu:~/Downloads/SSL-certificate$
DigiCertCA2.cer samplefileencrypted.key samplefile.pfx TrustedRoot.cer
We need to enter the import password which we created newly in step 1. Now we have a certificate(.crt) and the two private keys ( encrypted and unencrypted).
techrunnr@ubuntu:~/Downloads/SSL-certificate$ openssl rsa -in samplefileencrypted.key -out samplefileunencrypted.key
Enter pass phrase for samplefileencrypted.key:
writing RSA key
techrunnr@ubuntu:~/Downloads/SSL-certificate$ ls
DigiCertCA2.cer samplefileencrypted.key samplefile.pfx TrustedRoot.cer samplefileunencrypted.key
Mudra Exchange is India’s foremost secure crypto exchange platform, including SSL, TSL, and other cybersecurity elements. for more details visit our site http://www.mudra.exchange
Mudra Exchange is India’s foremost secure crypto exchange platform, including SSL, TSL, and other cybersecurity elements.
for more details visit our site http://www.mudra.exchange