summaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/tlsv1.2.d
blob: 5df843f7c5a2808f4b5d8d44788d2d84ab4aab44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Long: tlsv1.2
Help: Use TLSv1.2 or greater
Protocols: TLS
Added: 7.34.0
Category: tls
Example: --tlsv1.2 $URL
---
Forces curl to use TLS version 1.2 or later when connecting to a remote TLS server.

In old versions of curl this option was documented to allow _only_ TLS 1.2,
but behavior was inconsistent depending on the TLS library. Use --tls-max if
you want to set a maximum TLS version.