1CURLOPT_PROXY_SSLKEYTYPE(3)curl_easy_setopt optionsCURLOPT_PROXY_SSLKEYTYPE(3)
2
3
4

NAME

6       CURLOPT_PROXY_SSLKEYTYPE - type of the proxy private key file
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXY_SSLKEYTYPE, char *type);
12

DESCRIPTION

14       This option is for connecting to an HTTPS proxy, not an HTTPS server.
15
16       Pass  a  pointer  to  a null-terminated string as parameter. The string
17       should be the format of your private key. Supported formats are  "PEM",
18       "DER" and "ENG".
19
20       The  application  does not have to keep the string around after setting
21       this option.
22

PROTOCOLS

24       Used with HTTPS proxy
25

EXAMPLE

27       CURL *curl = curl_easy_init();
28       if(curl) {
29         curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
30         curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy");
31         curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT, "client.pem");
32         curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEY, "key.pem");
33         curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEYTYPE, "PEM");
34         curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, "s3cret");
35         ret = curl_easy_perform(curl);
36         curl_easy_cleanup(curl);
37       }
38

AVAILABILITY

40       Added in 7.52.0
41

RETURN VALUE

43       Returns CURLE_OK if TLS is supported, CURLE_UNKNOWN_OPTION if  not,  or
44       CURLE_OUT_OF_MEMORY if there was insufficient heap space.
45

SEE ALSO

47       CURLOPT_PROXY_SSLKEY(3),    CURLOPT_PROXY_SSLCERT(3),   CURLOPT_SSLKEY‐
48       TYPE(3),
49
50
51
52libcurl 7.85.0                   May 17, 2022      CURLOPT_PROXY_SSLKEYTYPE(3)
Impressum