Problems when converting a. PFX certificate to . PEM

Asked

Viewed 168 times

1

Working with certificates and occasionally need to perform the conversion of a private certificate in the extension .PFX to the extent .PEM, but I can only consume it in a web service if it is generated without password, that is, unprotected.

If I try to generate it with password (equal or not to the certificate .PFX), cannot consume it in the webservice (I get error "403 - Forbidden").

Can you tell me why this happens?

To generate it unprotected, I use the command below (through Openssl):

pkcs12 -in certificado.pfx -out certificado.pem -nodes

To generate it with password, I use this:

pkcs12 -in certificado.pfx -out certificado.pem

I cannot understand why the error occurs, since Openssl does not indicate any fault.

I use Windows environment, so I use an Openssl tool I found on the internet.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.