curl -s -o /dev/null -w '%{ssl_verify_result} %{ssl_version} %{cipher}\n' https://example.com

Category: Web Servers & Proxies

curl -s -o /dev/null -w '%{ssl_verify_result} %{ssl_version} %{cipher}\n' https://example.com

Show TLS verification result, version, and cipher

ssl_verify_result is 0 when the certificate chain validates, and any other value is an error code from the trust check. ssl_version and cipher show which protocol and cipher suite the server negotiated. A quick way to confirm TLS 1.3 and a strong cipher are actually in use.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.