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

NAME

6       CURLOPT_PROXY_KEYPASSWD - set passphrase to proxy private key
7

SYNOPSIS

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

DESCRIPTION

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.  It  will  be
18       used  as  the password required to use the CURLOPT_PROXY_SSLKEY(3) pri‐
19       vate key.  You never needed a pass phrase to load a certificate but you
20       need one to load your private key.
21
22       The  application  does not have to keep the string around after setting
23       this option.
24

DEFAULT

26       NULL
27

PROTOCOLS

29       Used with HTTPS proxy
30

EXAMPLE

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

AVAILABILITY

42       Added in 7.52.0
43

RETURN VALUE

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

SEE ALSO

49       CURLOPT_PROXY_SSLKEY(3),      CURLOPT_SSH_PRIVATE_KEYFILE(3),      CUR‐
50       LOPT_SSLKEY(3),
51
52
53
54libcurl 7.71.1                   June 25, 2020      CURLOPT_PROXY_KEYPASSWD(3)
Impressum