cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Question about cacert.pem on Windows with MinGW

From: Thomas Mayer <thomas_at_residuum.org>
Date: Fri, 17 May 2013 21:16:46 +0200

Hello,

I have used VERBOSE to get more info.

On 14.05.2013 10:55, Daniel Stenberg wrote:
> On Mon, 13 May 2013, Thomas Mayer wrote:
>
>> error code: CURLE_SSL_CACERT_BADFILE (77)
It seems that using gnutls, curl_easy_setopt(curl_handle,
CURLOPT_SSLCERT, common->cert_path); does not set the cert file:

* About to connect() to api.github.com port 443 (#2)
* Trying 207.97.227.243...
* Adding handle: conn: 0x3035018
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 2 (0x3035018) send_pipe: 1, recv_pipe: 0
* Connected to api.github.com (207.97.227.243) port 443 (#2)
* error reading ca cert file /etc/ssl/certs/ca-certificates.crt (Error
while reading file.)
* Closing connection 2

>
> ,,,
>
>> error code: CURLE_SSL_CERTPROBLEM (58)

Here is the error using openssl:
* About to connect() to api.github.com port 443 (#2)
* Trying 207.97.227.243...
* Adding handle: conn: 0x209c410
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 2 (0x209c410) send_pipe: 1, recv_pipe: 0
* Connected to api.github.com (207.97.227.243) port 443 (#2)
* unable to set private key file: 'C:\Program Files
(x86)\pd\extra\purest_json\cacert.pem' type PEM
* Closing connection 2

Any ideas?

Thanks,
Thomas

-- 
"Ich komme aus dem Staunen nicht heraus."
"Dann bleib halt drin, du Seppel"
(Dietmar Dath - Die Abschaffung der Arten)
http://www.residuum.org/
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-05-17