xref: /aosp_15_r20/external/curl/docs/cmdline-opts/tlsv1.2.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker---
2*6236dae4SAndroid Build Coastguard Workerc: Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3*6236dae4SAndroid Build Coastguard WorkerSPDX-License-Identifier: curl
4*6236dae4SAndroid Build Coastguard WorkerLong: tlsv1.2
5*6236dae4SAndroid Build Coastguard WorkerHelp: TLSv1.2 or greater
6*6236dae4SAndroid Build Coastguard WorkerProtocols: TLS
7*6236dae4SAndroid Build Coastguard WorkerAdded: 7.34.0
8*6236dae4SAndroid Build Coastguard WorkerCategory: tls
9*6236dae4SAndroid Build Coastguard WorkerMulti: mutex
10*6236dae4SAndroid Build Coastguard WorkerSee-also:
11*6236dae4SAndroid Build Coastguard Worker  - tlsv1.3
12*6236dae4SAndroid Build Coastguard Worker  - tls-max
13*6236dae4SAndroid Build Coastguard WorkerExample:
14*6236dae4SAndroid Build Coastguard Worker  - --tlsv1.2 $URL
15*6236dae4SAndroid Build Coastguard Worker---
16*6236dae4SAndroid Build Coastguard Worker
17*6236dae4SAndroid Build Coastguard Worker# `--tlsv1.2`
18*6236dae4SAndroid Build Coastguard Worker
19*6236dae4SAndroid Build Coastguard WorkerForces curl to use TLS version 1.2 or later when connecting to a remote TLS server.
20*6236dae4SAndroid Build Coastguard Worker
21*6236dae4SAndroid Build Coastguard WorkerIn old versions of curl this option was documented to allow _only_ TLS 1.2.
22*6236dae4SAndroid Build Coastguard WorkerThat behavior was inconsistent depending on the TLS library. Use --tls-max if
23*6236dae4SAndroid Build Coastguard Workeryou want to set a maximum TLS version.
24