2016-11-16 12:49:15 -05:00
|
|
|
.\" **************************************************************************
|
|
|
|
.\" * _ _ ____ _
|
|
|
|
.\" * Project ___| | | | _ \| |
|
|
|
|
.\" * / __| | | | |_) | |
|
|
|
|
.\" * | (__| |_| | _ <| |___
|
|
|
|
.\" * \___|\___/|_| \_\_____|
|
|
|
|
.\" *
|
2020-03-23 09:44:29 -04:00
|
|
|
.\" * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
|
2016-11-16 12:49:15 -05:00
|
|
|
.\" *
|
|
|
|
.\" * This software is licensed as described in the file COPYING, which
|
|
|
|
.\" * you should have received as part of this distribution. The terms
|
|
|
|
.\" * are also available at https://curl.haxx.se/docs/copyright.html.
|
|
|
|
.\" *
|
|
|
|
.\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
.\" * copies of the Software, and permit persons to whom the Software is
|
|
|
|
.\" * furnished to do so, under the terms of the COPYING file.
|
|
|
|
.\" *
|
|
|
|
.\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
.\" * KIND, either express or implied.
|
|
|
|
.\" *
|
|
|
|
.\" **************************************************************************
|
|
|
|
.\"
|
2016-11-21 05:01:25 -05:00
|
|
|
.TH CURLOPT_PROXY_SSLCERT 3 "16 Nov 2016" "libcurl 7.52.0" "curl_easy_setopt options"
|
2016-11-16 12:49:15 -05:00
|
|
|
.SH NAME
|
|
|
|
CURLOPT_PROXY_SSLCERT \- set SSL proxy client certificate
|
|
|
|
.SH SYNOPSIS
|
|
|
|
#include <curl/curl.h>
|
|
|
|
|
|
|
|
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXY_SSLCERT, char *cert);
|
|
|
|
.SH DESCRIPTION
|
2018-04-17 15:17:57 -04:00
|
|
|
This option is for connecting to an HTTPS proxy, not an HTTPS server.
|
2016-11-26 18:21:15 -05:00
|
|
|
|
2016-11-16 12:49:15 -05:00
|
|
|
Pass a pointer to a zero terminated string as parameter. The string should be
|
2016-11-26 18:21:15 -05:00
|
|
|
the file name of your client certificate used to connect to the HTTPS proxy.
|
|
|
|
The default format is "P12" on Secure Transport and "PEM" on other engines,
|
|
|
|
and can be changed with \fICURLOPT_PROXY_SSLCERTTYPE(3)\fP.
|
2016-11-16 12:49:15 -05:00
|
|
|
|
|
|
|
With NSS or Secure Transport, this can also be the nickname of the certificate
|
|
|
|
you wish to authenticate with as it is named in the security database. If you
|
|
|
|
want to use a file from the current directory, please precede it with "./"
|
|
|
|
prefix, in order to avoid confusion with a nickname.
|
|
|
|
|
|
|
|
When using a client certificate, you most likely also need to provide a
|
2016-11-26 18:21:15 -05:00
|
|
|
private key with \fICURLOPT_PROXY_SSLKEY(3)\fP.
|
2016-12-21 08:48:35 -05:00
|
|
|
|
|
|
|
The application does not have to keep the string around after setting this
|
|
|
|
option.
|
2016-11-16 12:49:15 -05:00
|
|
|
.SH DEFAULT
|
|
|
|
NULL
|
|
|
|
.SH PROTOCOLS
|
2016-11-26 18:21:15 -05:00
|
|
|
Used with HTTPS proxy
|
2016-11-16 12:49:15 -05:00
|
|
|
.SH EXAMPLE
|
2017-05-31 05:56:28 -04:00
|
|
|
.nf
|
|
|
|
CURL *curl = curl_easy_init();
|
|
|
|
if(curl) {
|
|
|
|
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
|
|
|
|
curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy");
|
|
|
|
curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT, "client.pem");
|
|
|
|
curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEY, "key.pem");
|
|
|
|
curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, "s3cret");
|
|
|
|
ret = curl_easy_perform(curl);
|
|
|
|
curl_easy_cleanup(curl);
|
|
|
|
}
|
|
|
|
.fi
|
2016-11-16 12:49:15 -05:00
|
|
|
.SH AVAILABILITY
|
2016-11-26 18:21:15 -05:00
|
|
|
Added in 7.52.0
|
2016-11-16 12:49:15 -05:00
|
|
|
.SH RETURN VALUE
|
|
|
|
Returns CURLE_OK if TLS enabled, CURLE_UNKNOWN_OPTION if not, or
|
|
|
|
CURLE_OUT_OF_MEMORY if there was insufficient heap space.
|
|
|
|
.SH "SEE ALSO"
|
2016-11-26 18:21:15 -05:00
|
|
|
.BR CURLOPT_PROXY_SSLCERTTYPE "(3), " CURLOPT_PROXY_SSLKEY "(3), "
|
|
|
|
.BR CURLOPT_SSLCERT "(3), "
|