curl-library
How to use Client certificate having .P12 format
Date: Thu, 10 Mar 2005 05:26:02 +0000
Hello,
I am having client certificate in .p12 format. So i have converted it to
.pem format using openssl.
now it's looks like as follows :
Bag Attributes
friendlyName: Rohit Valiveti's Security ID
localKeyID: FD 77 1C 09 7B 61 AD D9 27 D4 CE 12 8E 7F E2 F8 AE 1D C5 A2
Key Attributes: <No Attributes>
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,0A4EBAD719EF4D37
6+5mCKsYScg580H8aEIRNdlZyuVwqopX1xAjYQpPkh2oxHER+iIysclxUwhZzNSo
iG7W6KsFAqpIXZF/QnI/5pF8zWchQ1osQatdPsBQDD+ltc0X30bmWeerfHGSONAo
E2CrjXJ/reMujozqXQXfLBmcFgqfc2Y1l0FEqIC+fxk=
-----END RSA PRIVATE KEY-----
Bag Attributes
friendlyName: Certificate Manager - Security
subject=/C=US/ST=CA/L=CU/O=Security/OU=PSPL/CN=Certificate Manager
issuer=/C=US/ST=CA/L=CU/O=Security/OU=PSPL/CN=Certificate Manager
-----BEGIN CERTIFICATE-----
MIICNTCCAd+gAwIBAgIBBjANBgkqhkiG9w0BAQUFADBnMQswCQYDVQQGEwJVUzEL
/wQEAwIBhjANBgkqhkiG9w0BAQUFAANBAIPhFX5NclB13rr78O/2g8umEvxDMxSa
1IzwuwFJEU+5nPBFw7cP6u4wszVq7I8NiwVPhureN3LrVPBqCmwCXjQ=
-----END CERTIFICATE-----
Bag Attributes
friendlyName: Rohit Valiveti's Security ID
localKeyID: FD 77 1C 09 7B 61 AD D9 27 D4 CE 12 8E 7F E2 F8 AE 1D C5 A2
subject=/C=US/O=Oblix/OU=security/UID=Valiveti/CN=Rohit
Valiveti/emailAddress=user1k1_at_company.com
issuer=/C=US/ST=CA/L=CU/O=Security/OU=PSPL/CN=Certificate Manager
-----BEGIN CERTIFICATE-----
MIICRjCCAfCgAwIBAgIBPDANBgkqhkiG9w0BAQQFADBnMQswCQYDVQQGEwJVUzEL
XYY98P1Gwk+uRn0lXTJoftR2AdhSfN9wnLlXagum894CnvNH4U25rrK/p4UlVt0/
ypn1FCDEn6pKJA==
-----END CERTIFICATE-----
this .pem file contains private key as well as certificate.
now which file should i use for CURLOPT_SSLCERT and CURLOPT_SSLKEY
please help me out.
Regards
Aniruddha
_________________________________________________________________
Meet your life partner on BharatMatrimony.com
http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 Join FREE!
Received on 2005-03-10