How to create .pfx file or PKCS12 or .pfx file for my SSL Cert from certificate and private key?

 How to create .pfx file or PKCS12 or .pfx file for my SSL Cert from certificate and private key?

 

You need to use openssl and command:

(from Godaddy example) for P12

openssl pkcs12 -export -in mydomain.crt -inkey mydomain.com.key -certfile gd_bundle-g2-g1.crt -out mydomain.p12

 

For PFX

openssl pkcs12 -export -out domain.name.pfx -inkey domain.name.key -in domain.name.crt


Using Windows there is tool for that

The Microsoft Pvk2Pfx command line utility


Pvk2Pfx (Pvk2Pfx.exe) is a command-line tool copies public key and private key information contained in .spc, .cer, and .pvk files to a Personal Information Exchange (.pfx) file.


http://msdn.microsoft.com/en-us/library/windows/hardware/ff550672(v=vs.85).aspx

Comments

Popular posts from this blog

Securing the Pi-hole with fail2ban to prevent DNS Amplification attacks

How to clean DB from old logs in Magento 1.x

How can I chroot sftp-only SSH users into their homes?