curl-library
Re: Problem with certificate private key
Date: Mon, 28 Dec 2009 20:25:01 +0100
On Monday 28 of December 2009 18:50:22 . Дмитрий wrote:
> I have faced with a problem: when I try to send request, curl generates
> error: "unable to set private key file". But I have a certificate with only
> a public key. Private key is not provided by the site (so only output
> messages being encrypted). Without certificate post request being refused.
>
> If a browser is able to communicate with a site, then curl also must be
> able to do the same. How to disable checking of a private key?
AFAIK you always need a private key while using a client certificate, though
the key can be embeded in the cert file. If you don't have a separate file
with a key, simply do not use the option for key and it should work fine.
Kamil
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-28