1CURLOPT_PROXY_SSLCERTTYPE(3)curl_easy_setopt optionsCURLOPT_PROXY_SSLCERTTYPE(3)
2
3
4
6 CURLOPT_PROXY_SSLCERTTYPE - type of the proxy client SSL certificate
7
9 #include <curl/curl.h>
10
11 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXY_SSLCERTTYPE, char
12 *type);
13
15 Pass a pointer to a null-terminated string as parameter. The string
16 should be the format of your client certificate used when connecting to
17 an HTTPS proxy.
18
19 Supported formats are "PEM" and "DER", except with Secure Transport.
20 OpenSSL (versions 0.9.3 and later) and Secure Transport (on iOS 5 or
21 later, or OS X 10.7 or later) also support "P12" for PKCS#12-encoded
22 files.
23
24 The application does not have to keep the string around after setting
25 this option.
26
28 "PEM"
29
31 All
32
34 CURL *curl = curl_easy_init();
35 if(curl) {
36 curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
37 curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy");
38 curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT, "client.pem");
39 curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERTTYPE, "PEM");
40 curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEY, "key.pem");
41 curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, "s3cret");
42 ret = curl_easy_perform(curl);
43 curl_easy_cleanup(curl);
44 }
45
47 Added in 7.52.0
48
49 If built TLS enabled.
50
52 Returns CURLE_OK if TLS is supported, CURLE_UNKNOWN_OPTION if not, or
53 CURLE_OUT_OF_MEMORY if there was insufficient heap space.
54
56 CURLOPT_PROXY_SSLCERT(3), CURLOPT_PROXY_SSLKEY(3), CURLOPT_SSLCERTā
57 TYPE(3),
58
59
60
61libcurl 7.79.1 September 08, 2021 CURLOPT_PROXY_SSLCERTTYPE(3)