Switching to Post Quantum keys for services I run on Gemini
I have shared approximately the same content on the Gemini BBS, but decided to also make a more personalized take of the same announcment. After a day of contemplating about the NSA PQC note and after talking with a few friends, I've decided to switch certificates. In case you haven't read it
I don't buy the sky-is-falling stuff the fearmongering Twitter crowd is spewing. I am using P-256 (which my bad, should have been P-384, copied configs years ago and never checked), and my guess if I'm forced to bet my own money would be a 2^{N/3} or so algorithm for ECDLP. It just makese sense on the scale of urgency and secracy. P-256 now has 85.5 bits of security and P-384 becomes 128, not great but 128 is an usable mount. That also explains the misterious missing of the Ed25519 and other eliptive curves. With the RSA recommendation likely be uncertainty around how the ECDLP algorithm could translate to factorization. Or it could be a /4 or /2. I don't think the fuss would be that big if the impact is less then /2 and wouldn't recomment keep using P-384 if the implact is larger then /4.
IMPORTANT: That's only my specuation. The simplest explnation that explains all what we are observing
I figured that the PQ migration was inevitable anyway, given even P-384 won't survive a quantum computer for long. And it seems to be the right time as I'm motivated to look at the cryptography and be dealing with messy infra setups. I'd rather do the migration early and do it once and for all.
I do not believe this is a Dual EC DRBG situation again. Both PQC algorithms are well specified, with no weird low-entropy holes.
New certificates are planned to be activated on 2026-12-13 for the following domains (with their respective SHA-256 fingerprints, services that I host):
- tlgs.one: 9A:36:4B:1F:0D:4C:74:5E:09:E5:03:29:B1:3A:61:79:08:DB:E2:8F:9D:2D:C3:F9:16:50:E2:BA:2F:A5:E4:4B
- mail.northwire.xyz: 1C:8C:79:FA:A1:2C:A9:33:E3:42:C2:40:8B:D2:12:5F:06:78:A8:80:CF:BD:8E:50:BB:65:81:7B:C7:F7:68:CA
- northwire.xyz: E1:A1:DE:DA:2B:7C:FE:73:D8:30:0E:E7:80:47:8A:19:8A:A7:18:BD:F8:BA:2D:2C:03:E8:69:44:C0:B0:9F:AD
- tardis.northwire.xyz: 05:D2:83:C2:3E:AF:2C:18:CE:96:EA:5C:54:BB:E9:DC:5C:30:E7:21:FC:A0:6B:5A:1E:3E:06:8E:4B:66:94:72
- gemini.clehaxze.tw: 0A:5F:4D:53:7E:48:B3:55:6D:83:A5:7C:31:5F:A2:70:69:46:38:84:D4:D2:C4:41:08:23:DC:FB:70:D9:2A:9B
- gemsec.northwire.xyz: D7:6F:18:2A:B2:84:38:0B:D0:FE:45:24:40:B8:38:B6:C0:DC:CA:C4:85:69:62:A5:E8:19:09:F6:8E:38:9E:91
All new certificates will be using ML-KEM-86 keys (the most common PQ scheme and the largest key supported in said scheme). Unfortunately, this means clients using LibreSSL (OpenBSD and certain Linux distros) won't be able to connect until it catches up on PQC support.
I have considered using SLH-DSA, but the signatures are way too large for what should be a small internet (which I feel a bit conflicted about, because SLH-DSA has a much better margin than ML-DSA, and it's the option if I don't want another potential cert change).
For users who cannot use or do not trust PQC, please visit gemini://tlgs.one:1964/ as an alternative. The port is serving RSA-4096. Or connect via Spartan on port 300 if size is an issue.
Running PQC in the Small net will also serve to validate that the underlying networking library, trantor, which I am a maintainer of, handles PQC keys correctly.
One issue still remains, Northwire Mail uses P-256 for its Misfin identities and Misfin domain cert. Unfortunately, there's no way to switch user keys without breaking TOFU. I am working on a workaround. New registrations will be issued ML-KEM-86 Misfin identities. If the cryptography issue is critical for you and your security, please register a new account. Other running mailboxes I've tried seem to have no problem with ML-KEM-86 identities.
Notes
As people may know, some of the services run on OpenBSD and therefore use LibreSSL. Since LibreSSL has yet to support PQC keys, I have switched the TLS backend to a patched version of Botan with ML-KEM -- after talking to the maintainers and grabbing a few patches from open PRs. As of now, TLGS itself has been running on Botan for several hours and is stable. And since TLGS -> crawler communication is not public, the client cert there has already been switched to ML-KEM-86.
I am so happy that I was paranoid several years ago and added Botan as a backup TLS implemetation. Using OpenSSL on OpenBSD would likely be a dangerious and messy mess. And even if I managed to patch LibreSSL to support ML-DSA, supplying a local copy breaks the link kit OpenBSD ships with and complicates the boot process.