1CURLOPT_PROXY_SSLKEYTYPE(3)curl_easy_setopt optionsCURLOPT_PROXY_SSLKEYTYPE(3)
2
3
4
6 CURLOPT_PROXY_SSLKEYTYPE - set type of the proxy private key file
7
9 #include <curl/curl.h>
10
11 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXY_SSLKEYTYPE, char
12 *type);
13
15 This option is for connecting to an HTTPS proxy, not an HTTPS server.
16
17 Pass a pointer to a null-terminated string as parameter. The string
18 should be the format of your private key. Supported formats are "PEM",
19 "DER" and "ENG".
20
21 The application does not have to keep the string around after setting
22 this option.
23
25 Used with HTTPS proxy
26
28 CURL *curl = curl_easy_init();
29 if(curl) {
30 curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
31 curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy");
32 curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT, "client.pem");
33 curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEY, "key.pem");
34 curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEYTYPE, "PEM");
35 curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, "s3cret");
36 ret = curl_easy_perform(curl);
37 curl_easy_cleanup(curl);
38 }
39
41 Added in 7.52.0
42
44 Returns CURLE_OK if TLS is supported, CURLE_UNKNOWN_OPTION if not, or
45 CURLE_OUT_OF_MEMORY if there was insufficient heap space.
46
48 CURLOPT_PROXY_SSLKEY(3), CURLOPT_PROXY_SSLCERT(3), CURLOPT_SSLKEY‐
49 TYPE(3),
50
51
52
53libcurl 7.76.1 November 04, 2020 CURLOPT_PROXY_SSLKEYTYPE(3)