xref: /curl/docs/cmdline-opts/tls-max.md (revision fe9f68fa)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: tls-max
5Arg: <VERSION>
6Tags: Versions
7Protocols: TLS
8Added: 7.54.0
9Requires: TLS
10Help: Maximum allowed TLS version
11Category: tls
12Multi: single
13See-also:
14  - tlsv1.0
15  - tlsv1.1
16  - tlsv1.2
17  - tlsv1.3
18Example:
19  - --tls-max 1.2 $URL
20  - --tls-max 1.3 --tlsv1.2 $URL
21---
22
23# `--tls-max`
24
25VERSION defines maximum supported TLS version. The minimum acceptable version
26is set by tlsv1.0, tlsv1.1, tlsv1.2 or tlsv1.3.
27
28If the connection is done without TLS, this option has no effect. This
29includes QUIC-using (HTTP/3) transfers.
30
31## default
32Use up to recommended TLS version.
33
34## 1.0
35Use up to TLSv1.0.
36
37## 1.1
38Use up to TLSv1.1.
39
40## 1.2
41Use up to TLSv1.2.
42
43## 1.3
44Use up to TLSv1.3.
45