diff options
author | Alex Rousskov <rousskov@measurement-factory.com> | 2016-11-16 10:49:15 -0700 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-11-24 23:41:44 +0100 |
commit | cb4e2be7c6d42ca0780f8e0a747cecf9ba45f151 (patch) | |
tree | 8bfc55a2318327b0ad921d2d5a37d972e3cca373 /docs/curl.1 | |
parent | 8034d8fc624393326ea9874a4e2d60614ed6c78f (diff) |
proxy: Support HTTPS proxy and SOCKS+HTTP(s)
* HTTPS proxies:
An HTTPS proxy receives all transactions over an SSL/TLS connection.
Once a secure connection with the proxy is established, the user agent
uses the proxy as usual, including sending CONNECT requests to instruct
the proxy to establish a [usually secure] TCP tunnel with an origin
server. HTTPS proxies protect nearly all aspects of user-proxy
communications as opposed to HTTP proxies that receive all requests
(including CONNECT requests) in vulnerable clear text.
With HTTPS proxies, it is possible to have two concurrent _nested_
SSL/TLS sessions: the "outer" one between the user agent and the proxy
and the "inner" one between the user agent and the origin server
(through the proxy). This change adds supports for such nested sessions
as well.
A secure connection with a proxy requires its own set of the usual SSL
options (their actual descriptions differ and need polishing, see TODO):
--proxy-cacert FILE CA certificate to verify peer against
--proxy-capath DIR CA directory to verify peer against
--proxy-cert CERT[:PASSWD] Client certificate file and password
--proxy-cert-type TYPE Certificate file type (DER/PEM/ENG)
--proxy-ciphers LIST SSL ciphers to use
--proxy-crlfile FILE Get a CRL list in PEM format from the file
--proxy-insecure Allow connections to proxies with bad certs
--proxy-key KEY Private key file name
--proxy-key-type TYPE Private key file type (DER/PEM/ENG)
--proxy-pass PASS Pass phrase for the private key
--proxy-ssl-allow-beast Allow security flaw to improve interop
--proxy-sslv2 Use SSLv2
--proxy-sslv3 Use SSLv3
--proxy-tlsv1 Use TLSv1
--proxy-tlsuser USER TLS username
--proxy-tlspassword STRING TLS password
--proxy-tlsauthtype STRING TLS authentication type (default SRP)
All --proxy-foo options are independent from their --foo counterparts,
except --proxy-crlfile which defaults to --crlfile and --proxy-capath
which defaults to --capath.
Curl now also supports %{proxy_ssl_verify_result} --write-out variable,
similar to the existing %{ssl_verify_result} variable.
Supported backends: OpenSSL, GnuTLS, and NSS.
* A SOCKS proxy + HTTP/HTTPS proxy combination:
If both --socks* and --proxy options are given, Curl first connects to
the SOCKS proxy and then connects (through SOCKS) to the HTTP or HTTPS
proxy.
TODO: Update documentation for the new APIs and --proxy-* options.
Look for "Added in 7.XXX" marks.
Diffstat (limited to 'docs/curl.1')
-rw-r--r-- | docs/curl.1 | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/docs/curl.1 b/docs/curl.1 index cfa17aed3..04346867e 100644 --- a/docs/curl.1 +++ b/docs/curl.1 @@ -1468,6 +1468,33 @@ the default authentication method curl uses with proxies. .IP "--proxy-digest" Tells curl to use HTTP Digest authentication when communicating with the given proxy. Use \fI--digest\fP for enabling HTTP Digest with a remote host. +.IP "--proxy-cacert <CA certificate>" +(SSL) Same as --cacert but used in HTTPS proxy context. +(Added in 7.XXX) +.IP "--proxy-capath <CA certificate directory>" +(SSL) Same as --capath but used in HTTPS proxy context. +(Added in 7.XXX) +.IP "--proxy-cert <certificate[:password]>" +(SSL) Same as \fI--cert\fP but used in HTTPS proxy context. +(Added in 7.XXX) +.IP "--proxy-cert-type <type>" +(SSL) Same as \fI--cert-type\fP but used in HTTPS proxy context. +(Added in 7.XXX) +.IP "--proxy-ciphers <list of ciphers>" +(SSL) Same as \fI--ciphers\fP but used in HTTPS proxy context. +(Added in 7.XXX) +.IP "--proxy-crlfile <file>" +(HTTPS) Same as \fI--crlfile\fP but used in HTTPS proxy context. +(Added in 7.XXX) +.IP "--proxy-insecure" +(SSL) Same as \fI--insecure\fP but used in HTTPS proxy context. +(Added in 7.XXX) +.IP "--proxy-key <key>" +(SSL) Same as \fI--key\fP but used in HTTPS proxy context. +(Added in 7.XXX) +.IP "--proxy-key-type <type>" +(SSL) Same as \fI--key-type\fP but used in HTTPS proxy context. +(Added in 7.XXX) .IP "--proxy-negotiate" Tells curl to use HTTP Negotiate (SPNEGO) authentication when communicating with the given proxy. Use \fI--negotiate\fP for enabling HTTP Negotiate (SPNEGO) @@ -1475,11 +1502,35 @@ with a remote host. (Added in 7.17.1) .IP "--proxy-ntlm" Tells curl to use HTTP NTLM authentication when communicating with the given proxy. Use \fI--ntlm\fP for enabling NTLM with a remote host. +.IP "--proxy-pass <phrase>" +(SSL) Same as \fI--pass\fP but used in HTTPS proxy context. +(Added in 7.XXX) .IP "--proxy-service-name <servicename>" This option allows you to change the service name for proxy negotiation. Examples: --proxy-negotiate proxy-name \fI--proxy-service-name\fP sockd would use sockd/proxy-name. (Added in 7.43.0). +.IP "--proxy-ssl-allow-beast" +(SSL) Same as \fI--ssl-allow-beast\fP but used in HTTPS proxy context. +(Added in 7.XXX) +.IP "--proxy-sslv2" +(SSL) Same as \fI--sslv2\fP but used in HTTPS proxy context. +(Added in 7.XXX) +.IP "--proxy-sslv3" +(SSL) Same as \fI--sslv3\fP but used in HTTPS proxy context. +(Added in 7.XXX) +.IP "--proxy-tlsauthtype <authtype>" +Same as \fI--tlsauthtype\fP but used in HTTPS proxy context. +(Added in 7.XXX) +.IP "--proxy-tlspassword <password>" +Same as \fI--tlspassword\fP but used in HTTPS proxy context. +(Added in 7.XXX) +.IP "--proxy-tlsuser <user>" +Same as \fI--tlsuser\fP but used in HTTPS proxy context. +(Added in 7.XXX) +.IP "--proxy-tlsv1" +(SSL) Same as \fI--tlsv1\fP but used in HTTPS proxy context. +(Added in 7.XXX) .IP "--proxy1.0 <proxyhost[:port]>" Use the specified HTTP 1.0 proxy. If the port number is not specified, it is assumed at port 1080. |