TLS versions: 1.0 to 1.3, and which to enable
TLS versions are the successive revisions of the protocol behind every TLS connection. Four exist: TLS 1.0 and 1.1 are deprecated, TLS 1.2 is still allowed, and TLS 1.3 is the current one, which RFC 9325 calls a major overhaul of the protocol [2]. This page is about the versions themselves: TLS 1.2 vs 1.3, what TLS 1.3 removed, and how to check and set the versions a server accepts.
- Current version
- TLS 1.3, specified in RFC 9846, which replaced RFC 8446 and kept the same version number [1]
- Still allowed
- TLS 1.2; RFC 9325 requires implementations to support it [2]
- How the version is chosen
- the client lists the versions it supports, the server picks one from that list [1]
Which versions exist, and which are still allowed
| Version | Value on the wire | Specification | Status |
|---|---|---|---|
| TLS 1.0 | 0x0301 | RFC 2246 | deprecated by RFC 8996 |
| TLS 1.1 | 0x0302 | RFC 4346 | deprecated by RFC 8996 |
| TLS 1.2 | 0x0303 | RFC 5246 | allowed; implementations MUST support it |
| TLS 1.3 | 0x0304 | RFC 9846 (replaced RFC 8446) | current; implementations SHOULD support it and, if they do, MUST prefer it |
The values come from each specification [1] [4], the status from RFC 8996 and RFC 9325 [2] [3]. The versions before them were called SSL and are deprecated as well; how the name changed is covered on SSL vs TLS. RFC 8996 moved TLS 1.0 and 1.1 to Historic status, and RFC 9846 forbids negotiating them for any reason [1] [3]. Browsers follow: Firefox 147's error text names TLS 1.2 "the minimum version supported by Firefox" [11], and in our test Chrome 156 refused servers limited to TLS 1.1 or TLS 1.0 with ERR_SSL_VERSION_OR_CIPHER_MISMATCH and "uses an unsupported protocol" [13]. A server today should accept TLS 1.2 and TLS 1.3 and nothing older.
How client and server agree on a version
By default an OpenSSL client offers its lowest and highest versions, and an OpenSSL server picks the highest one it also supports [6]. Since TLS 1.3, the client sends its versions as a list in the supported_versions extension, most preferred first, and the server must choose from that list. The old version field stays at 0x0303, the TLS 1.2 value; RFC 9846 explains the list as a fix for servers that implemented version negotiation incorrectly [1]. When no version is shared, the handshake ends with a protocol_version alert, number 70: the version is recognized but not supported [1]. In our test, a default OpenSSL client asked a server that accepts only TLS 1.1 and got SSL alert number 70 [13].
TLS 1.2 vs 1.3: what changed
| Aspect | TLS 1.2 | TLS 1.3 |
|---|---|---|
| Full handshake | two round trips before application data | one round trip |
| Key exchange | static RSA and Diffie-Hellman suites defined | static RSA and Diffie-Hellman removed; every public-key exchange gives forward secrecy |
| Encryption | legacy algorithms can still be negotiated | only AEAD algorithms |
| Handshake privacy | messages before ChangeCipherSpec, the certificate among them, are not encrypted | everything after the ServerHello is encrypted |
| Version negotiation | one version field | a version list in an extension |
| Resumption | with or without server-side state, plus PSK cipher suites | one pre-shared key exchange, with an optional 0-RTT mode |
| Compression, renegotiation | both defined | compression removed; renegotiation is not possible |
The TLS 1.2 column follows RFC 5246 [4] and, for round trips, RFC 7918 [5]; the TLS 1.3 column follows the RFC 9846 list of major differences and its note on renegotiation [1]. The steps of the new handshake are on the TLS handshake, and why ephemeral key exchange keeps recorded traffic unreadable is on forward secrecy. The remaining cipher suites name only an AEAD algorithm and a hash. Among the extensions that now travel encrypted is the server's ALPN protocol choice [1].
Downgrade protection, seen on the wire
RFC 9846 builds downgrade protection into the server's random value. A TLS 1.3 server that negotiates TLS 1.2 must end its ServerHello random with the bytes 44 4F 57 4E 47 52 44 01, "DOWNGRD" and 01. A TLS 1.3 client that receives them in a TLS 1.2 ServerHello must abort the handshake with an illegal_parameter alert [1]. In our test, an OpenSSL 3.0.13 server with default settings answered a client limited to TLS 1.2 with exactly these last 8 bytes. The same server with TLS 1.3 switched off sent random bytes without them [13]. The signal only comes from a server that supports TLS 1.3, and RFC 9846 adds that it does not protect static RSA key exchange [1].
Is TLS 1.2 still safe?
Yes, when configured with modern cipher suites. TLS 1.2 itself is not deprecated: RFC 9325 requires implementations to support it and says that, with its recommendations followed, "the use of TLS 1.2 is as safe as the use of TLS 1.3" [2]. RFC 9846 obsoletes the RFC 5246 document and adds requirements for TLS 1.2 implementations, such as the downgrade signal above; the version itself stays allowed [1] [2].
The risk is in the options TLS 1.2 still permits. RFC 10015 now forbids static RSA and finite-field Diffie-Hellman key exchange in TLS 1.2 and discourages static ECDH, which leaves ephemeral ECDHE, the key exchange that gives forward secrecy [7]. RC4 and ciphers weaker than 112 bits must not be offered in any version [1]. A TLS 1.2 configuration limited to ECDHE key exchange and authenticated encryption (AEAD) is sound [2], and keeping it enabled lets older clients connect while newer ones negotiate TLS 1.3. RFC 9325 expects a future version of its guidance to deprecate TLS 1.2 "when it is appropriate to do so" [2].
How to check which versions a server accepts
Ask for each version in turn and read the protocol line. With a version option, OpenSSL offers or accepts only that version, and -brief prints a short summary [6]:
$ openssl s_client -connect example.com:443 -servername example.com -brief -tls1_3 </dev/null
$ openssl s_client -connect example.com:443 -servername example.com -brief -tls1_2 </dev/nullEach completed handshake prints Protocol version: TLSv1.3 or Protocol version: TLSv1.2 [13]. A scan lists the versions at once, with the accepted cipher suites under each; its letter grades leave the TLS version out [9]:
$ nmap -sV --script ssl-enum-ciphers -p 443 example.comCheck from outside, against the hostname visitors use. A configuration file says what was intended; the handshake says what is actually served, and behind a CDN or load balancer the two may be different machines. On Bridge CDN, TLS is terminated at the edge [14].
Testing TLS 1.1 and 1.0 with OpenSSL 3
OpenSSL 3.0 runs TLS 1.0 and 1.1 only at security level 0, and its default is level 1 [6]. A plain -tls1_1 check therefore fails in the client itself: in our test it printed no protocols available against a modern server and against one that accepted only TLS 1.1 [13]. Lower the level for the test:
$ openssl s_client -connect example.com:443 -servername example.com -brief -tls1_1 -cipher 'DEFAULT@SECLEVEL=0' </dev/nullA server that refuses TLS 1.1 answers with SSL alert number 70; one that accepts it prints Protocol version: TLSv1.1 [13]. Only the alert is the answer you want.
How to set the versions
Web servers name the accepted versions in one directive. In nginx:
ssl_protocols TLSv1.2 TLSv1.3;The nginx documentation gives this line as the default, with TLSv1.3 in it since version 1.23.4. A server block chosen by SNI gets its own list only when nginx is built with OpenSSL 1.1.1 or later, BoringSSL or AWS-LC; with other libraries the list comes from the default server [8]. In Apache:
SSLProtocol -all +TLSv1.2 +TLSv1.3Apache's default is all -SSLv3, and all includes TLS 1.0 and 1.1, so the explicit line matters. A name-based virtual host gets its own SSLProtocol only with Apache 2.4.42 or later, OpenSSL 1.1.1 or later and SNI from the client; otherwise the base virtual host's value applies [10].
Both directive names still say SSL; the values are what matter. Reload the server and repeat the checks above, because a directive in a file that is not loaded changes nothing.
0-RTT and its trade-off
TLS 1.3 also lets a client send data in its first flight, protected with a pre-shared key, such as one from a previous session. This "early data" saves a round trip, and RFC 9846 names its price: no forward secrecy guarantees for that data and no protection against replay between connections [1]. An attacker who captures it can send it again. For HTTP, RFC 8470 gives the server a per-request answer: TLS accepts all early data or none, so a request that should not run from early data gets 425 (Too Early), and the client retries it outside early data [12]. The request method's safety is one way to decide, but RFC 8470 warns that some resources have side effects even with safe methods [12].
FAQ
What is the difference between TLS 1.2 and TLS 1.3?
TLS 1.3 completes a full handshake in one round trip instead of two, allows only forward-secret key exchange and authenticated encryption, encrypts every handshake message after the ServerHello and negotiates the version through a list in an extension. TLS 1.2 permits older options that have to be disabled by configuration. [1] [5]
Sources
RFC 9846, TLS 1.3 (obsoletes RFC 8446 and RFC 5246): §1, §1.2, §1.3, §1.4, §2.3, §4.2.2, §4.2.3, §4.3.1, §5.1, §6, E.5.
RFC 9325 (BCP 195), Recommendations for Secure Use of TLS and DTLS: §3.1.1.
RFC 8996 (BCP 195), Deprecating TLS 1.0 and TLS 1.1.
RFC 2246 (TLS 1.0), RFC 4346 (TLS 1.1), RFC 5246 (TLS 1.2): protocol version values; RFC 5246 §7.3.
RFC 7918, TLS False Start: §1.
OpenSSL 3.0 manual: openssl (TLS Version Options), openssl-s_client, migration guide (security level and TLS 1.0/1.1).
RFC 10015, Deprecating Obsolete Key Exchange Methods in (D)TLS 1.2: abstract, §2–§4, §6.
nginx: ngx_http_ssl_module (ssl_protocols); Server names (Virtual server selection).
Nmap NSE documentation: ssl-enum-ciphers.
Apache HTTP Server 2.4, mod_ssl: SSLProtocol.
Firefox 147.0.4 source, toolkit/locales/en-US/toolkit/neterror/certError.ftl.
RFC 8470, Using Early Data in HTTP: §3, §5.2.
Our runs: OpenSSL 3.0.13 and Chrome for Testing 156 headless on Linux, localhost, a www.example.com test certificate from our own lab root.
Bridge SSL, home page FAQ: What happens on my server?