1CURLOPT_PROXY_KEYPASSWD(3) curl_easy_setopt options CURLOPT_PROXY_KEYPASSWD(3)
2
3
4

NAME

6       CURLOPT_PROXY_KEYPASSWD - passphrase for the proxy private key
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXY_KEYPASSWD, char *pwd);
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. It will be
17       used as the password required to use the  CURLOPT_PROXY_SSLKEY(3)  pri‐
18       vate key.  You never needed a pass phrase to load a certificate but you
19       need one to load your private key.
20
21       The application does not have to keep the string around  after  setting
22       this option.
23

DEFAULT

25       NULL
26

PROTOCOLS

28       Used with HTTPS proxy
29

EXAMPLE

31       CURL *curl = curl_easy_init();
32       if(curl) {
33         curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/foo.bin");
34         curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy:443");
35         curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, "superman");
36         ret = curl_easy_perform(curl);
37         curl_easy_cleanup(curl);
38       }
39

AVAILABILITY

41       Added in 7.52.0
42

RETURN VALUE

44       Returns  CURLE_OK  if  TLS  enabled,  CURLE_UNKNOWN_OPTION  if  not, or
45       CURLE_OUT_OF_MEMORY if there was insufficient heap space.
46

SEE ALSO

48       CURLOPT_PROXY_SSLKEY(3),  CURLOPT_SSH_PRIVATE_KEYFILE(3),   CURLOPT_SS‐
49       LKEY(3),
50
51
52
53libcurl 7.82.0                 November 26, 2021    CURLOPT_PROXY_KEYPASSWD(3)
Impressum