On Linux, how libcurl does find the CA bundle ?
Is the path given when the library is generated ?
Is there any other mechanism ? default location ?
Thanks
Philippe

----- Mail original -----
De: "philippe weyland" <philippe.weyl...@libertysurf.fr>
À: darktable-dev@lists.darktable.org
Envoyé: Mercredi 30 Janvier 2019 15:17:28
Objet: Map find location issue for windows

Tweaking location.c file I've found two ways to make it work under windows.

1. curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
Without checking the certificate that works ... but that is not what we want 
really.

2. curl_easy_setopt(curl, CURLOPT_CAINFO, 
"C:\\msys64\\mingw64\\ssl\\certs\\ca-bundle.crt");
When the path for CA bundle is given that works too. But the path will 
different from an OS to the other.
... could be set to dartable\bin\ca-bundle.crt...

I haven't found if libcurl had a default location on windows. I've made some 
checks without success.

I've found on https://github.com/curl/curl/issues/1538:
"it will still be possible to do getenv("CURL_CA_BUNDLE") yourself and pass 
that to CURLOPT_CAINFO"

To set CURL_CA_BUNDLE path is not enough alone (for what I've tried).

Any suggestion ?

Philippe

___________________________________________________________________________
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org

Reply via email to