2022-06-14 06:12:03 +08:00
|
|
|
c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
|
|
SPDX-License-Identifier: curl
|
2016-12-14 04:10:00 +08:00
|
|
|
Long: tls-max
|
|
|
|
Arg: <VERSION>
|
|
|
|
Tags: Versions
|
|
|
|
Protocols: SSL
|
|
|
|
Added: 7.54.0
|
|
|
|
Requires: TLS
|
2018-12-12 18:48:56 +08:00
|
|
|
See-also: tlsv1.0 tlsv1.1 tlsv1.2 tlsv1.3
|
|
|
|
Help: Set maximum allowed TLS version
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: tls
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: --tls-max 1.2 $URL
|
|
|
|
Example: --tls-max 1.3 --tlsv1.2 $URL
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: single
|
2016-12-14 04:10:00 +08:00
|
|
|
---
|
2018-12-12 18:48:56 +08:00
|
|
|
VERSION defines maximum supported TLS version. The minimum acceptable version
|
|
|
|
is set by tlsv1.0, tlsv1.1, tlsv1.2 or tlsv1.3.
|
2016-12-14 04:10:00 +08:00
|
|
|
|
2020-08-02 17:20:33 +08:00
|
|
|
If the connection is done without TLS, this option has no effect. This
|
|
|
|
includes QUIC-using (HTTP/3) transfers.
|
|
|
|
|
2016-12-14 04:10:00 +08:00
|
|
|
.RS
|
|
|
|
.IP "default"
|
|
|
|
Use up to recommended TLS version.
|
|
|
|
.IP "1.0"
|
|
|
|
Use up to TLSv1.0.
|
|
|
|
.IP "1.1"
|
|
|
|
Use up to TLSv1.1.
|
|
|
|
.IP "1.2"
|
|
|
|
Use up to TLSv1.2.
|
|
|
|
.IP "1.3"
|
|
|
|
Use up to TLSv1.3.
|
|
|
|
.RE
|