Sortix 1.1dev ports manual
This manual documents Sortix 1.1dev ports. You can instead view this document in the latest official manual.
CURLOPT_CAINFO(3) | curl_easy_setopt options | CURLOPT_CAINFO(3) |
NAME
CURLOPT_CAINFO - path to Certificate Authority (CA) bundleSYNOPSIS
#include <curl/curl.h>DESCRIPTION
Pass a char * to a zero terminated string naming a file holding one or more certificates to verify the peer with.DEFAULT
Built-in system specific. When curl is built with Secure Transport or Schannel, this option is not set by default.PROTOCOLS
All TLS based protocols: HTTPS, FTPS, IMAPS, POP3S, SMTPS etc.EXAMPLE
CURL *curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/"); curl_easy_setopt(curl, CURLOPT_CAINFO, "/etc/certs/cabundle.pem"); ret = curl_easy_perform(curl); curl_easy_cleanup(curl); }
AVAILABILITY
For the SSL engines that don't support certificate files the CURLOPT_CAINFO option is ignored. Schannel support added in libcurl 7.60.RETURN VALUE
Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or CURLE_OUT_OF_MEMORY if there was insufficient heap space.SEE ALSO
CURLOPT_CAPATH(3), CURLOPT_SSL_VERIFYPEER(3), CURLOPT_SSL_VERIFYHOST(3),June 10, 2019 | libcurl 7.69.0 |