curl-library
Re: Question about cacert.pem on Windows with MinGW
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 18 May 2013 18:50:03 +0200 (CEST)
Date: Sat, 18 May 2013 18:50:03 +0200 (CEST)
On Fri, 17 May 2013, Thomas Mayer wrote:
> It seems that using gnutls, curl_easy_setopt(curl_handle,
> CURLOPT_SSLCERT, common->cert_path); does not set the cert file:
CURLOPT_SSLCERT is to set a client cert, while you seem to want to set the
path to a CA cert. Correct? If you want to specify the CA cert, use
CURLOPT_CAINFO.
> * unable to set private key file: 'C:\Program Files
> (x86)\pd\extra\purest_json\cacert.pem' type PEM
Right, as there's no private key in the CA cert file!
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2013-05-18