1CURLOPT_PROXY_SSLKEY(3)             libcurl            CURLOPT_PROXY_SSLKEY(3)
2
3
4

NAME

6       CURLOPT_PROXY_SSLKEY - private key file for HTTPS proxy client cert
7

SYNOPSIS

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

DESCRIPTION

14       Pass  a  pointer  to  a null-terminated string as parameter. The string
15       should be the file name of your private key used for connecting to  the
16       HTTPS  proxy.  The default format is "PEM" and can be changed with CUR‐
17       LOPT_PROXY_SSLKEYTYPE(3).
18
19       (Windows, iOS and Mac OS X) This option is ignored by Secure  Transport
20       and Schannel SSL backends because they expect the private key to be al‐
21       ready present in the key chain or PKCS#12 file containing the  certifi‐
22       cate.
23
24       The  application  does not have to keep the string around after setting
25       this option.
26

DEFAULT

28       NULL
29

PROTOCOLS

31       All
32

EXAMPLE

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_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

AVAILABILITY

46       Added in 7.52.0
47
48       If built TLS enabled.
49

RETURN VALUE

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

SEE ALSO

55       CURLOPT_PROXY_SSLKEYTYPE(3),  CURLOPT_PROXY_SSLCERT(3), CURLOPT_SSLKEY‐
56       TYPE(3), CURLOPT_SSLCERT(3),
57
58
59
60ibcurl 8.2.1                    April 26, 2023         CURLOPT_PROXY_SSLKEY(3)
Impressum