Tuesday, November 29, 2022

Convert a *.pfx certificate into *.pem

So you exported a SSL certificate from a Windows OS as *.pfx. However you require that as *.PEM file. So what can you do?

There are websites which allows you to upload the *.pfx and offers you to download the format you require. However this approach is a huge security issue, so we need another way. So do the following:

1.) Download XCA (X Certificate and Key management)

2.) Install it and then start it.

3.) Create a new Database

4.) Once done import the PKCS#12 (*.pfx)

5.) You now have the option to export the content into *.PEM

If you open the *.PEM in an text editor (Notepad++) and depending on the export format you should see the following format:

A.) The Private Key (your_domain_name.key)

B.) The Primary Certificate (your_domain_name.crt)

C.) The Intermediate Certificate (TheIntermediateCA.crt)

D.) The Root Certificate (TheTrustedRoot.crt)

so it would look like:

—–BEGIN RSA PRIVATE KEY—–
(Your Private Key: your_domain_name.key)
—–END RSA PRIVATE KEY—–

—–BEGIN CERTIFICATE—–
(Your Primary SSL certificate: your_domain_name.crt)
—–END CERTIFICATE—–

—–BEGIN CERTIFICATE—–
(Your Intermediate certificate: TheIntermediateCA.crt)
—–END CERTIFICATE—–

—–BEGIN CERTIFICATE—–
(Your Root certificate: TheTrustedRoot.crt)
—–END CERTIFICATE—–

 

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Stay Connected

24FollowersFollow
- Advertisement -

Latest Articles