TLS and post-quantum cryptography#
The edge accepts TLS 1.3 only. This page explains what that buys, what it costs, and where the honest limits of the demonstration are.
Certificate#
| Property | Value |
|---|---|
| Subject | testz.dev |
| Additional names | testz.dev, www.testz.dev |
| Key algorithm | EC_prime256v1 |
| Issuer | Amazon (ACM) |
| Validation method | DNS-01 |
| Wildcard | no |
Why ECDSA P-256 and not RSA-2048#
A P-256 signature is ~64 bytes against ~256 for RSA-2048, and the public key is ~32 bytes against ~256. Smaller certificates mean a smaller handshake, and ECDSA signing is dramatically cheaper than RSA at equivalent security. It also matches the DNSSEC key-signing key, so DNS and TLS use the same curve.
The usual objection — ancient RSA-only clients — does not apply here, because the TLS 1.3-only policy already excludes everything that old.
Why no wildcard#
A wildcard certificate is a single private key that authenticates every possible subdomain, including ones that do not exist yet. Naming hosts explicitly keeps the blast radius of a key compromise proportional to what is actually deployed.
It also unlocks a real control: because no wildcard is needed, the CAA record can publish issuewild ";" and forbid wildcard issuance for this domain outright.
Why TLSv1.3_2025#
CloudFront's TLSv1.3_2025 security policy accepts only TLS 1.3, and enables hybrid post-quantum key exchange (X25519MLKEM768) automatically at no additional cost.
What TLS 1.3 (RFC 8446) fixes relative to 1.2:
- One round trip instead of two for a full handshake.
- Forward secrecy is mandatory. Static RSA key exchange is gone, so
compromising the certificate key later does not decrypt past sessions.
- AEAD only. CBC-mode ciphers and the whole family of padding-oracle attacks
are removed. So are RC4, 3DES, compression and renegotiation.
- Encrypted handshake. Certificates and extensions are encrypted, so a
passive observer learns much less.
Hybrid post-quantum key exchange#
X25519MLKEM768 combines classical X25519 with ML-KEM-768 (standardised as FIPS 203, formerly Kyber). The shared secret derives from both, so the session is secure unless both are broken.
The threat model is harvest now, decrypt later: an adversary records encrypted traffic today and decrypts it once a cryptographically relevant quantum computer exists. For traffic with a long confidentiality lifetime this is a real concern today, because the recording is happening now regardless of when the decryption becomes possible.
For a public documentation website, the actual confidentiality benefit is approximately zero — everything served here is public. It is deployed because it is free, because it is the correct default for anything that does carry sensitive data, and because deploying it here is how you find out what breaks before it matters.
What this site cannot prove#
The /api/whoami endpoint reports your negotiated TLS version and cipher suite, read from CloudFront's CloudFront-Viewer-TLS header.
The cipher suite is not the key-exchange group. TLS_AES_128_GCM_SHA256 describes the symmetric AEAD protecting the session; it says nothing about whether the shared secret was established with X25519, P-256, or the hybrid X25519MLKEM768. CloudFront does not expose the key-exchange group to the origin, so this site cannot demonstrate that post-quantum key agreement occurred, even though the policy enables it.
To verify it yourself, inspect the handshake client-side:
# OpenSSL 3.5+ reports the negotiated group.
openssl s_client -connect testz.dev:443 -tls1_3 -groups X25519MLKEM768 </dev/null 2>&1 \
| grep -iE 'negotiated|group|protocol|cipher'
In Chrome or Firefox, the connection details in developer tools name the key exchange directly.
Overclaiming here would be easy and would undermine the point of the whole exercise, so the limitation is stated in the API response itself as well as here.
The cost of TLS 1.3-only#
This is not a free decision, and pretending otherwise would be dishonest. TLS 1.2-only clients receive a handshake failure, not a downgrade:
- Older
curlandwgetbuilds, and anything linked against OpenSSL 1.0.x. - Corporate TLS-inspecting middleboxes that terminate at TLS 1.2.
- Some link-preview and crawler bots, so a shared link may not render a preview.
- Some third-party SSL grading tools, which may report a connection error rather
than a grade.
- Java 8 before 8u261, and Android before 10.
For a site whose subject matter is its own cryptographic posture, refusing obsolete TLS is the point rather than a regrettable side effect. For anything with real users, TLSv1.2_2021 is the right answer — it still negotiates TLS 1.3 with modern clients and does not lock anyone out. The setting is a single variable, minimum_protocol_version.
See ADR-0004.
HSTS and the .dev advantage#
The site sends the HSTS header (RFC 6797), Strict-Transport-Security: max-age=63072000; includeSubDomains; preload.
The interesting part is that it barely matters here. The entire .dev TLD is on the HSTS preload list, shipped inside every major browser. A browser will not make a plaintext HTTP request to any .dev domain, ever, regardless of what headers it has seen — which also means there is no first-visit window of vulnerability, the classic weakness of header-based HSTS.
The header is still sent, for three reasons: non-browser clients do not consult the preload list, the preload list's own requirements expect the header to be present, and relying on a TLD-level property that could theoretically change is a worse posture than simply being correct.
Choosing a .dev domain was itself a security decision.
Origin connections#
Viewer-to-CloudFront is TLS 1.3 only. CloudFront-to-origin is a separate hop:
- S3: TLS enforced by the bucket policy, which denies any request where
aws:SecureTransport is false.
- Lambda Function URL:
origin_protocol_policy = "https-only"with
origin_ssl_protocols = ["TLSv1.2"], which is the floor CloudFront offers for origin connections. This traffic stays inside the AWS network and is additionally authenticated with SigV4 via OAC.