curl-library
RE: libcurl and CA bundles
Date: Fri, 13 May 2016 10:52:03 +0200
Thanks for your response.
The compilation option CURL_WANTS_CA_BUNDLE_ENV can´t be defined in my linux environment, but the ca cert bundle is defined during the configuration process.
De: curl-library [mailto:curl-library-bounces_at_cool.haxx.se] En nombre de Ray Satiro via curl-library
Enviado el: viernes, 13 de mayo de 2016 7:07
Para: curl-library_at_cool.haxx.se
CC: Ray Satiro
Asunto: Re: libcurl and CA bundles
On 5/12/2016 8:05 PM, Jason W. Lewis wrote:
Does libcurl use the CURL_CA_BUNDLE environment variable like the curl binary does? We have a web transaction that works from the command line, but not when called from within our app and we’re trying to narrow it down.
Typically no but in Windows in rare cases (watcom, old mingw build makefiles) libcurl may be built with -DCURL_WANTS_CA_BUNDLE_ENV by default which will do that.
try
curl_easy_setopt(curl, CURLOPT_CAINFO, getenv("CURL_CA_BUNDLE"));
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-05-13