How do I convert a .PFX certificate to .PEM?

6

I exported a .pfx file from my A3 certificate. How do I convert it to .pem . In VB.Net if possible.

    
asked by anonymous 28.10.2014 / 13:39

1 answer

2

The easiest way I think is with the OpenSSL binary, usually for linux, but it also has a Windows version:

The installer can be found here: link (direct link: link ), or in some software library such as 'cygwin', for example if you are familiar with it.

The command for conversion is:

openssl pkcs12 -in c:\caminho\do\certificado\de\origem.pfx -out c:\caminho\do\arquivo\de\destino.pem -nodes

When you enter this command, you will be prompted for the password used to protect the original .pfx file so that it is decrypted. This command will generate a UNPROTECTED (no password) certificate, which is suitable for use in automated applications (eg web servers).

Source:

http://support.citrix.com/article/CTX106028
    
23.12.2014 / 02:13