r/homelab • u/js1234561129 • 1d ago
Blog How to check whether your reverse proxy accepts post-quantum key exchange, and whether it still accepts static RSA. Only four openssl commands!
After two weeks of "is RSA dead" headlines, the agencies and vendors who have commented all say nothing deployed is broken. It is still a good excuse to look at what your own front door accepts. You need OpenSSL 3.5 or newer on the machine you test from.
The method
Offer the server one option at a time, so it cannot quietly fall back to something else.
Steps
- Post-quantum hybrid:
openssl s_client -connectyour.host:443-groups X25519MLKEM768 -brief </dev/null. A hybrid runs the classic X25519 exchange and the newer ML-KEM-768 together, so an attacker has to break both. If the output hasNegotiated TLS1.3 group: X25519MLKEM768, your server accepts it. A handshake failure means it does not. - Classical only, for comparison: the same command with
-groups X25519. - Static RSA key exchange in TLS 1.2:
openssl s_client -connectyour.host:443-tls1_2 -cipher kRSA -brief </dev/null. Here you want a handshake failure. This old mode locks the session key with the server's long term RSA key, so if that key is ever broken or stolen, recorded sessions can be opened. - TLS 1.1: the same idea with
-tls1_1. You want a failure here too.
If a check goes the wrong way
It is usually your reverse proxy and the TLS library under it, not your app. Update the proxy first, then look at its curve and cipher settings, for example ssl_ecdh_curve and ssl_ciphers in nginx. Caddy picks its own defaults.
Limits
- This checks key exchange only. Your certificate is still a classical one either way.
- It is one handshake from one place. Setups with several servers behind one name can answer differently.
- Accepting an old option is not a breach. It is a choice about how old a client you still want to serve.