cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: [Fwd: can't use a client cert with curl]

From: Frédéric Léger <fleger_at_mobivillage.com>
Date: Wed, 18 Apr 2007 12:30:37 +0200

How can i put the private key if the certificate was given by a partner, which issued a request to comodo CA to have it certified ?

Is there any way to extract the private key from the cert with openssl ?

Regards

Frederic

-----Message d'origine-----
De : Peter Sylvester [mailto:Peter.Sylvester_at_edelweb.fr]
Envoyé : mercredi 18 avril 2007 12:23
À : Frédéric Léger
Objet : [Fwd: can't use a client cert with curl]

You also need to put the private key into the same file in pem format, not only the (public) certificate.

-------- Original Message --------
Subject: can't use a client cert with curl
Date: Wed, 18 Apr 2007 11:41:55 +0200
From: Frédéric Léger <fleger_at_mobivillage.com>
Reply-To: the curl tool <curl-users_at_cool.haxx.se>
To: <curl-users_at_cool.haxx.se>

Can someone give us some help ?
 
Whe are trying to connect over an https connection to a web server.
This server requires us to authneticate with a client cert.
 
We have received a certificates in order to do this.
 
when i try to connect with "curl --cert path_to_cert.cert https://someurl.com/xxx" i get the following error:
 
"curl: (58) unable to set private key file: 'path_to_cert.crt' type PEM"
 
Thanks a lot
Received on 2007-04-18