Getting a pem from a p12

2010-01-20 Thread avelino

Hi, all.

First of all: sorry about my poor SSL skills. I want to create an https 
connection to a third party https web service and the client must use a 
certificate to use that web service. I am using PHP (PHP uses libcurl 
and supports only PEM certificates) in my side (the client side). The 
third party mailed me a trust.keystore file and a .p12 file. How can 
I get the .pem file? I have been executing the following command but 
always requests for an input password (and I have no password!):


openssl pkcs12 -clcerts -in input.p12 -out output.pem


Could the trust.keystore be used to get the .pem file?


Thanks in advance.
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org


Re: Getting a pem from a p12

2010-01-20 Thread Massimiliano Ziccardi
(and I have no password!)

You should ask the trust.keystore and .p12 file password to the one that
sent them to you.

Moreover, you should be sure you know what you are trying to get: do you
want simply to convert the files from DER to PEM, or you want to extract all
the certificates into PEM files?



On Wed, Jan 20, 2010 at 2:55 PM, avelino avel...@mhpsc.com wrote:

 Hi, all.

 First of all: sorry about my poor SSL skills. I want to create an https
 connection to a third party https web service and the client must use a
 certificate to use that web service. I am using PHP (PHP uses libcurl and
 supports only PEM certificates) in my side (the client side). The third
 party mailed me a trust.keystore file and a .p12 file. How can I get the
 .pem file? I have been executing the following command but always requests
 for an input password (and I have no password!):

 openssl pkcs12 -clcerts -in input.p12 -out output.pem


 Could the trust.keystore be used to get the .pem file?


 Thanks in advance.
 __
 OpenSSL Project http://www.openssl.org
 User Support Mailing Listopenssl-users@openssl.org
 Automated List Manager   majord...@openssl.org