1CURLOPT_PROXY_KEYPASSWD(3) libcurl CURLOPT_PROXY_KEYPASSWD(3)
2
3
4
6 CURLOPT_PROXY_KEYPASSWD - passphrase for the proxy private key
7
9 #include <curl/curl.h>
10
11 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXY_KEYPASSWD, char *pwd);
12
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 need 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
25 NULL
26
28 Used with HTTPS proxy
29
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
41 Added in 7.52.0
42
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
48 CURLOPT_PROXY_SSLKEY(3), CURLOPT_SSH_PRIVATE_KEYFILE(3), CURLOPT_SS‐
49 LKEY(3),
50
51
52
53ibcurl 8.2.1 April 26, 2023 CURLOPT_PROXY_KEYPASSWD(3)