Support curl's `--tls-max` option
Author: josh-coderpadCreated Feb 7, 2025Updated Aug 12, 2026
Labelsenhancementopen-to-contributiontopic: curl options
Problem to solve
Assert that insecure versions of TLS are disabled
Proposal
Support curl's --tls-max option in [Options], and provide a way to check that the request failed. Here's how to do it with curl: curl -o /dev/null -sw %{http_code} --tls-max 1.0 https://example.com (outputs 000 if TLS 1.0 is disabled).
Additional context and resources
Seems similar to https://github.com/Orange-OpenSource/hurl/issues/166
Source: Orange-OpenSource/hurl