1CURLOPT_PROXY_SSLCERTTYPE(3) libcurl CURLOPT_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 *type);
12
14 Pass a pointer to a null-terminated string as parameter. The string
15 should be the format of your client certificate used when connecting to
16 an HTTPS proxy.
17
18 Supported formats are "PEM" and "DER", except with Secure Transport or
19 Schannel. OpenSSL (versions 0.9.3 and later), Secure Transport (on iOS
20 5 or later, or OS X 10.7 or later) and Schannel support "P12" for
21 PKCS#12-encoded files.
22
23 The application does not have to keep the string around after setting
24 this option.
25
27 "PEM"
28
30 All
31
33 CURL *curl = curl_easy_init();
34 if(curl) {
35 curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
36 curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy");
37 curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT, "client.pem");
38 curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERTTYPE, "PEM");
39 curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEY, "key.pem");
40 curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, "s3cret");
41 ret = curl_easy_perform(curl);
42 curl_easy_cleanup(curl);
43 }
44
46 Added in 7.52.0
47
48 If built TLS enabled.
49
51 Returns CURLE_OK if TLS is supported, CURLE_UNKNOWN_OPTION if not, or
52 CURLE_OUT_OF_MEMORY if there was insufficient heap space.
53
55 CURLOPT_PROXY_SSLCERT(3), CURLOPT_PROXY_SSLKEY(3), CURLOPT_SSLCERTā
56 TYPE(3),
57
58
59
60ibcurl 8.2.1 April 26, 2023 CURLOPT_PROXY_SSLCERTTYPE(3)