How to export an existing SSL certificate from Windows IIS and reuse it on Linux (convert .PFX to .KEY and .CRT)

1) In Windows, right click on the SSL certificate and export to .PFX

2) On Linux, convert the .PFX file into .CRT, ca_bundle and .KEY file.

openssl pkcs12 -in cert.pfx -nocerts -out cert.key
openssl pkcs12 -in cert.pfx -clcerts -nokeys -out cert.crt
openssl pkcs12 -in cert.pfx -nodes -nokeys -passin pass:mypassword -out ca_bundle.pem

See also:

Was this answer helpful?

 Print this Article

Also Read

Converting .CRT (X.509) to .P7B (PKCS#7) file format

Windows:    Instrunctions for Microsoft Windows (Symantec Knowlegde Base) Linux: openssl...

SSL Installation under Apache and Tomcat 6.0, Tomcat 7.0,Tomcat 8.0

Tomcat 6.x: Tomcat...

How can i verify my SSL certification?

Please use the tools from our SSL Tools site which offer you all kinds of SSL checker tools for...

GEOTRUST RapidSSL installation instructions (various server types)

1. INSTALL CERTIFICATE: Install the X.509 version of your certificate included at the end of...

Microsoft IIS: multi-domain SSL on a single IP. Setting up host headers for IIS with SAN

How to configure SSL host headers in Microsoft IIS...