views:

1592

answers:

2

Can someone tell me how can I extract a public keu in .pem format from a .cer file ? I'm trying to configure webservice over https with nusoap.

Tks, ED

+2  A: 

Any time I need to convert certificate formats I like to hop on my Linux shell and use the openssl CLI.

Take a look at this page for common openssl commands. You will be most interested in the one titled "Convert DER (.crt .cer .der) to PEM".

joshperry
+2  A: 
openssl x509 -inform der -in <certificate> -noout -pubkey

Should print out the public key.

Douglas Leeder