1 .\" **************************************************************************
3 .\" * Project ___| | | | _ \| |
4 .\" * / __| | | | |_) | |
5 .\" * | (__| |_| | _ <| |___
6 .\" * \___|\___/|_| \_\_____|
8 .\" * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
10 .\" * This software is licensed as described in the file COPYING, which
11 .\" * you should have received as part of this distribution. The terms
12 .\" * are also available at https://curl.haxx.se/docs/copyright.html.
14 .\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 .\" * copies of the Software, and permit persons to whom the Software is
16 .\" * furnished to do so, under the terms of the COPYING file.
18 .\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 .\" * KIND, either express or implied.
21 .\" **************************************************************************
23 .TH CURLOPT_PROXY_CAINFO 3 "16 Nov 2016" "libcurl 7.52.0" "curl_easy_setopt options"
25 CURLOPT_PROXY_CAINFO \- path to proxy Certificate Authority (CA) bundle
27 #include <curl/curl.h>
29 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXY_CAINFO, char *path);
31 This option is for connecting to a HTTPS proxy, not a HTTPS server.
33 Pass a char * to a zero terminated string naming a file holding one or more
34 certificates to verify the HTTPS proxy with.
36 If \fICURLOPT_PROXY_SSL_VERIFYPEER(3)\fP is zero and you avoid verifying the
37 server's certificate, \fICURLOPT_PROXY_CAINFO(3)\fP need not even indicate an
40 This option is by default set to the system path where libcurl's cacert bundle
41 is assumed to be stored, as established at build time.
43 If curl is built against the NSS SSL library, the NSS PEM PKCS#11 module
44 (libnsspem.so) needs to be available for this option to work properly.
46 (iOS and macOS only) If curl is built against Secure Transport, then this
47 option is supported for backward compatibility with other SSL engines, but it
48 should not be set. If the option is not set, then curl will use the
49 certificates in the system and user Keychain to verify the peer, which is the
50 preferred method of verifying the peer's certificate chain.
52 The application does not have to keep the string around after setting this
55 Built-in system specific
63 For TLS backends that don't support certificate files, the
64 \fICURLOPT_PROXY_CAINFO(3)\fP option is ignored. Refer to
65 https://curl.haxx.se/docs/ssl-compared.html
67 Returns CURLE_OK if the option is supported, CURLE_UNKNOWN_OPTION if not, or
68 CURLE_OUT_OF_MEMORY if there was insufficient heap space.
70 .BR CURLOPT_PROXY_CAPATH "(3), "
71 .BR CURLOPT_PROXY_SSL_VERIFYPEER "(3), " CURLOPT_PROXY_SSL_VERIFYHOST "(3), "
72 .BR CURLOPT_CAPATH "(3), "
73 .BR CURLOPT_SSL_VERIFYPEER "(3), " CURLOPT_SSL_VERIFYHOST "(3), "