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

NAME

6       CURLOPT_PROXY_SSLCERTTYPE  -  specify type of the proxy client SSL cer‐
7       tificate
8

SYNOPSIS

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

DESCRIPTION

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

DEFAULT

29       "PEM"
30

PROTOCOLS

32       All
33

EXAMPLE

35       CURL *curl = curl_easy_init();
36       if(curl) {
37         curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
38         curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy");
39         curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT, "client.pem");
40         curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERTTYPE, "PEM");
41         curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEY, "key.pem");
42         curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, "s3cret");
43         ret = curl_easy_perform(curl);
44         curl_easy_cleanup(curl);
45       }
46

AVAILABILITY

48       Added in 7.52.0
49
50       If built TLS enabled.
51

RETURN VALUE

53       Returns  CURLE_OK  if TLS is supported, CURLE_UNKNOWN_OPTION if not, or
54       CURLE_OUT_OF_MEMORY if there was insufficient heap space.
55

SEE ALSO

57       CURLOPT_PROXY_SSLCERT(3),   CURLOPT_PROXY_SSLKEY(3),   CURLOPT_SSLCERT‐
58       TYPE(3),
59
60
61
62libcurl 7.69.1                  April 17, 2018    CURLOPT_PROXY_SSLCERTTYPE(3)
Impressum