1CURLOPT_PROXY_SSLCERTTYPE(3)curl_easy_setopt optionsCURLOPT_PROXY_SSLCERTTYPE(3)
2
3
4

NAME

6       CURLOPT_PROXY_SSLCERTTYPE - type of the proxy client SSL certificate
7

SYNOPSIS

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

DESCRIPTION

14       Pass  a  pointer  to  a null-terminated string as parameter. The string
15       should be the format of your client certificate used when connecting to
16       an HTTPS proxy.
17
18       Supported  formats  are  "PEM" and "DER", except with Secure Transport.
19       OpenSSL (versions 0.9.3 and later) and Secure Transport (on  iOS  5  or
20       later,  or  OS  X 10.7 or later) also support "P12" for PKCS#12-encoded
21       files.
22
23       The application does not have to keep the string around  after  setting
24       this option.
25

DEFAULT

27       "PEM"
28

PROTOCOLS

30       All
31

EXAMPLE

33       CURL *curl = curl_easy_init();
34       if(curl) {
35         curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
36         curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy");
37         curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT, "client.pem");
38         curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERTTYPE, "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_SSLCERT(3),   CURLOPT_PROXY_SSLKEY(3),   CURLOPT_SSLCERTā€
56       TYPE(3),
57
58
59
60libcurl 7.82.0                 November 26, 2021  CURLOPT_PROXY_SSLCERTTYPE(3)
Impressum