Require TLS 1.2 or newer for the connection.
Section: TLS and Certificates
Require TLS 1.2
bash
bash
curl --tlsv1.2 https://example.comExplanation
Useful when testing compatibility or enforcing modern TLS.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing TLS and Certificates
Use a CA certificate directory
Use a directory of CA certificates instead of a single bundle file.
Use a PKCS#12 client certificate
Authenticate with a P12 / PFX certificate bundle.
Request certificate status checks
Require certificate status validation via TLS stapling when supported.