cURL / Mailing Lists / curl-library / Single Mail

curl-library

libcurl+openssl on windows

From: Alex Loukissas <alex_at_maginatics.com>
Date: Mon, 27 Feb 2012 18:18:39 -0800

Hello,

I have an app that links statically against libcurl, which itself (libcurl)
is built with openssl support. My app is cross-compiled on Linux with
mingw-64 and run on Win7-64. The problem I'm facing is the following:

Unless I use the CURLOPT_CAINFO option and hard-code a certificate path,
the program throws an error: "error setting certificate verify locations:
CAfile: /etc/ssl/certs/ca-certificates.crt". My question is: can libcurl
use Windows' certificates somehow, and if so, how? From an old thread (
http://curl.haxx.se/mail/archive-2000-05/0060.html), it seems that the
answer may be no, although my suspicion is that openSSL supports this.

Any thoughts? I would like to prevent my app from having to do any sort of
certificate handling, but pick up the system's.

Thanks!
Alex

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-02-28