cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_CAPATH returning CURLE_NOT_BUILT_IN on MacOS 10.10

From: Volker Schmid <volker.schmid_at_regify.com>
Date: Thu, 27 Aug 2015 16:49:49 +0200

Am 27.08.2015 um 06:37 schrieb Nick Zitzmann:
>
>> On Aug 26, 2015, at 4:15 AM, Volker Schmid <volker.schmid_at_regify.com> wrote:
>>
>> Thanks for the answer. Ok, I understand. But on MacOS I also do not have some cacerts.pem file usable with CURLOPT_CAINFO. So how to make this working? Or do I need to provide this file?
>
> You won't ever need to use CURLOPT_CAINFO with the SecureTransport back-end, because by default, SecureTransport uses the Keychain for certificate validation, and the Keychain on iOS and OS X comes with its own set of root certificates.
>
> If you have a special set of root certificates you want to use, then CURLOPT_CAPATH will work... But in general, you ought to import your certificate(s) into the Keychain using certtool or Keychain Access, and set them as trusted. That way, they will work with curl, libcurl, Apple's apps, and most third-party apps.

Thank you both Nick and Daniel! Now I understand. I will try this.

Best wishes,

Volker
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-08-27