How to Check TLS Version of a Website

, by xura.tools team

TL;DR: Run openssl s_client -connect example.com:443 -servername example.com -tls1_3 and look at the Protocol: line. Swap -tls1_3 for -tls1_2, -tls1_1 or -tls1 to test each version. For a full list in one go, use nmap --script ssl-enum-ciphers -p 443 example.com. No terminal? Use our TLS check. A modern site should accept TLS 1.2 and 1.3 and refuse 1.0 and 1.1.

What you are checking

A server can support several TLS versions. Browser and server agree on the highest one both support. So there are two different questions:

  1. Which version did my connection use? Usually TLS 1.3. The browser can tell you.
  2. Which versions does the server accept? This is the security question. A server that still accepts TLS 1.0 will talk TLS 1.0 to any client that asks for it, and its a common finding in pentest and PCI scan reports.

For the second question you need to test each version one by one. All outputs below are real, from December 5, 2026.

Method 1: OpenSSL

echo | openssl s_client -connect example.com:443 -servername example.com -tls1_3 2>&1 \
  | grep -E "^New|Protocol"
New, TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384
Protocol: TLSv1.3

Same for TLS 1.2:

echo | openssl s_client -connect example.com:443 -servername example.com -tls1_2 2>&1 \
  | grep -E "^New|Protocol"
New, TLSv1.2, Cipher is ECDHE-ECDSA-CHACHA20-POLY1305
Protocol: TLSv1.2

Testing TLS 1.0 and 1.1

New OpenSSL builds refuse TLS 1.0 and 1.1 on your side before they even connect. You'll see this, and it says nothing about the server:

error:0A0000BF:SSL routines:tls_setup_handshake:no protocols available

Lower the security level for the test:

echo | openssl s_client -connect github.com:443 -servername github.com \
  -tls1 -cipher 'DEFAULT@SECLEVEL=0' 2>&1 | grep -E "^New|alert"

github.com refuses it, which is what you want:

error:0A00042E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version:ssl/record/rec_layer_s3.c:910:SSL alert number 70
New, (NONE), Cipher is (NONE)

alert protocol version means the server said no to that version. example.com, on the other hand, still accepted TLS 1.0 and 1.1 when we tested.

One trap. With -tls1_1, OpenSSL printed New, TLSv1.0, Cipher is ECDHE-RSA-AES128-SHA for example.com, and then Protocol: TLSv1.1 a few lines later. The New, line shows the TLS version the cipher was defined in, not the version you got. Always read the Protocol: line.

Always pass -servername. Without SNI a shared server can answer with a different site and different settings.

Method 2: curl

curl sets a minimum with --tlsv1.x and a maximum with --tls-max. Set both to the same value to force one version:

curl -sv --tlsv1.2 --tls-max 1.2 https://example.com -o /dev/null 2>&1 | grep "SSL connection"
* SSL connection using TLSv1.2 / ECDHE-ECDSA-CHACHA20-POLY1305 / [blank] / UNDEF

A refused version makes curl fail with exit code 35:

curl -s --tlsv1.0 --tls-max 1.0 https://github.com -o /dev/null; echo "exit $?"
exit 35

The curl that ships with macOS is built with LibreSSL. On our Mac, --tlsv1.3 failed with exit code 4 (feature not available), even though a plain request did use TLS 1.3. If you see that, use OpenSSL or a curl from Homebrew or your Linux distro.

Method 3: nmap, all versions at once

nmap's ssl-enum-ciphers script tries every version and cipher and gives each a grade:

nmap --script ssl-enum-ciphers -p 443 github.com

Trimmed output:

PORT    STATE SERVICE
443/tcp open  https
| ssl-enum-ciphers: 
|   TLSv1.2: 
|     ciphers: 
|       TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (ecdh_x25519) - A
|       TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (ecdh_x25519) - A
|       ...
|   TLSv1.3: 
|     ciphers: 
|       TLS_AKE_WITH_AES_128_GCM_SHA256 (ecdh_x25519) - A
|       TLS_AKE_WITH_AES_256_GCM_SHA384 (ecdh_x25519) - A
|       TLS_AKE_WITH_CHACHA20_POLY1305_SHA256 (ecdh_x25519) - A
|_  least strength: A

Only TLSv1.2 and TLSv1.3 are listed, so github.com accepts nothing older. For example.com the same scan listed TLSv1.0, TLSv1.1, TLSv1.2 and TLSv1.3, with least strength: C.

Only scan hosts you own or have permission to test. It sends a lot of handshakes.

Method 4: Windows and PowerShell

PowerShell can open a TLS connection with .NET and print the version:

$h = 'github.com'
$tcp = [System.Net.Sockets.TcpClient]::new($h, 443)
$ssl = [System.Net.Security.SslStream]::new($tcp.GetStream())
$ssl.AuthenticateAsClient($h)
$ssl.SslProtocol
$tcp.Close()

To force one version, pass it to AuthenticateAsClient:

$ssl.AuthenticateAsClient($h, $null, [System.Security.Authentication.SslProtocols]::Tls12, $false)

If the server refuses, you get an exception instead of a version. We ran this with PowerShell 7 on macOS and it printed Tls12 for github.com, even though GitHub supports TLS 1.3. The result depends on what TLS the OS gives .NET. So on a Mac, trust openssl more. On Windows the result follows what Windows itself supports.

On a Windows Server, the versions IIS accepts are set in the registry under HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols. Still test from outside with one of the methods here, because that's what clients actually get.

Method 5: the browser

This only shows the version your browser got. It can't tell you if the server still accepts TLS 1.0.

Method 6: online

Our TLS check connects to your site and reports TLS 1.3 support, whether TLS 1.0 and 1.1 are still accepted, the negotiated version and the certificate expiry. See github.com as an example. Every result has its own link you can share with your team.

TLS 1.0 end of life

TLS 1.0 is from 1999 and TLS 1.1 from 2006. Browsers dropped them in 2020:

In March 2021 the IETF made it official with RFC 8996: "TLS 1.0 MUST NOT be used" and "TLS 1.1 MUST NOT be used".

So no current browser will use them. The only reason to keep them on is a very old client you control. If a check shows them enabled, turn them off:

If you're already in your TLS config, check the post-quantum key exchange too: X25519MLKEM768 on nginx, OpenSSL, Caddy and Go. And for the certificate side, see how to check the certificate chain with OpenSSL.

FAQ

How to check TLS version of a URL?

Run openssl s_client -connect host:443 -servername host -tls1_2 (or -tls1_3) and read the Protocol: line. Or paste the domain into our TLS check.

How to check TLS version in Linux?

OpenSSL, curl and nmap all work on Linux. Use openssl s_client with -tls1_2 or -tls1_3 per version, or nmap --script ssl-enum-ciphers -p 443 host for all versions at once.

How do I check the TLS version on Windows Server?

From PowerShell, use the SslStream snippet above against the server's hostname. The enabled versions are set under the SCHANNEL Protocols registry key, but test from outside to see what clients get.

When was TLS 1.0 end of life?

Browsers dropped TLS 1.0 and 1.1 in 2020 (Chrome 84 removed them). RFC 8996 formally deprecated both in March 2021.

TLS 1.0 vs 1.2: what is the difference?

TLS 1.2 supports modern ciphers like AES-GCM and ChaCha20 and SHA-256 based signatures. TLS 1.0 depends on older building blocks like SHA-1 and MD5 that are no longer safe. Use TLS 1.2 as the minimum and turn on TLS 1.3.


Is your site affected? Run the free P-256 check.