Repository navigation
Conversation
The new options limit the certificate/signature algorithms used to authenticate TLS connections, so that RSA and/or ECC can be disabled in favor of post-quantum (ML-DSA) certificates: - OpenSSL: filter aRSA/aECDSA cipher suites for TLS/1.2 and set the signature algorithm list (which also covers TLS/1.3). ML-DSA is included with OpenSSL 3.5 and later. LibreSSL has no way to set the signature algorithms, so the options cause the connection to fail there rather than being silently ignored. - GNU TLS: remove the RSA/ECDSA key exchanges and signature algorithms from the priority string. - Auto-created server credentials use ECDSA P-384 when RSA is denied, and fail with an error when both are denied. - tlscheck gets matching --no-rsa and --no-ecc options. Key exchange is not changed: OpenSSL 3.5 already negotiates the hybrid X25519MLKEM768 group by default.
Member
|
Not for 3.0.x We are still waiting for proper X.509 support (i.e, Merkle trees) to get through the IETF, and then we’ll need printers to implement it, and to have proper support throughout the stack to support PQC and hybrid configurations. I’d be interested in any GNU TLS fixes you have separately from these changes, however… Thanks! |
Contributor
Author
|
Thanks! I've opened #234 with just the GNU TLS fix. It turned out CUPS had already fixed the same bug in OpenPrinting/cups#1701, so I've mirrored that change instead of the retry loop I had here. I'll drop that commit from this PR. I'm leaving the DenyRSA/DenyECC part as it is in case it's useful for 3.1 once X.509 PQC support is ready. Feel free to close it if you'd rather start fresh then. |
rue19
force-pushed
the
pqc-deny-rsa-ecc
branch
from
November 25, 2026 10:28
ce5d1d9 to
17c80dd
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This covers the first item in #163:
DenyRSAandDenyECCforSSLOptions.What the options do
They restrict the certificate/signature algorithms used to authenticate the TLS connection. The key exchange is left alone.
!aRSA/!aECDSAin the cipher list (TLS/1.2), plusSSL_CTX_set1_sigalgs_list(), which also covers TLS/1.3. On OpenSSL 3.5+ the list includesmldsa65:mldsa87:mldsa44. LibreSSL has noSSL_CTX_set1_sigalgs_list(), so there the options make_httpTLSStartfail with "No allowed signature algorithms." instead of being silently ignored under TLS/1.3. If you'd rather cap LibreSSL at TLS/1.2 instead, that's an easy change.SIGN-*algorithms from the priority string. Every keyword was checked against GNU TLS 3.8.12, because one unknown keyword makes GNU TLS reject the whole string. The PSS/RSAE/EdDSA names are guarded withGNUTLS_VERSION_NUMBER >= 0x03060c.DenyRSAthey use ECDSA P-384 instead of the default RSA-3072. With both options set, creation fails with "No allowed key type for server credentials." because libcups can't create ML-DSA credentials yet.--no-rsaand--no-eccoptions.I didn't touch CHANGES.md or the strings files. The two new
_()messages will need a strings update.Second commit: GNU TLS was ignoring all SSLOptions on Debian/Ubuntu
I found this while testing. The priority string starts with
@SYSTEM,, and GNU TLS only accepts that when its config file defines aSYSTEMpriority. Ubuntu's/etc/gnutls/configonly has an[overrides]section, sognutls_priority_set_direct()returnsGNUTLS_E_INVALID_REQUEST. The return value was ignored, so every SSLOptions setting was dropped. On unpatched master with GNU TLS on Ubuntu 26.04,tlscheck --tls12still negotiates TLS/1.3, and--no-cbchas no effect either.The fix retries without
@SYSTEM,when that happens and logs priority errors. I can split it into its own PR if you'd prefer.Post-quantum status
On OpenSSL 3.5 (Ubuntu 26.04), libcups already negotiates the hybrid
X25519MLKEM768group (RFC 10024) by default, because it never sets the groups list.openssl s_clientagainstippeveprintershowsNegotiated TLS1.3 group: X25519MLKEM768. So nothing is needed for ML-KEM key exchange itself.The certificate side is ML-DSA (FIPS 204), not ML-KEM, since ML-KEM can't sign. With these options and a manually created ML-DSA-65 certificate in the keystore, a fully post-quantum handshake works on OpenSSL 3.5:
Ubuntu's GNU TLS 3.8.12 is built without leancrypto/liboqs, so it has no ML-KEM groups and ML-DSA isn't usable there.
Testing
Ubuntu 26.04 container, configured as in CI (
--enable-debug --enable-maintainer --with-sanitizer=address), OpenSSL 3.5.5 and GNU TLS 3.8.12. I testedippeveprinter(auto-created certs) againsttlscheckwith each server/client combination. Both backends give the same results:--no-rsa--no-ecc--no-rsa --no-ecc--tls12 --no-rsa--tls12 --no-eccDenyRSA, ECDSA P-384 certDenyECC, RSA certDenyRSA DenyECCmake testpasses with both backends (GNU TLS tools: 202 tests, 79 passed, 0 failed, 123 skipped, the same as master). One note: in that containertools/hits an ASan stack overflow inipptooltoken_cb(ipptool.c:5237) with the default 8 MB stack. Unpatched master does the same and CI is green, so I ran withulimit -s 65536.Not in this PR
The other two items in #163, the multi-certificate store and picking the certificate in
_httpTLSStartby algorithm, involve API decisions I'd rather discuss first. Two notes from testing:CUPS_CREDTYPE_MLDSA_*(OpenSSL 3.5+, and GNU TLS with leancrypto) would makeDenyRSA DenyECCwork with auto-created certificates. That overlaps with Support Post-Quantum ML-DSA signing algorithm for JWS #162.One open question: if a server already has an auto-created RSA certificate and
DenyRSAis then enabled, it keeps using that certificate and every handshake fails. Should_httpTLSStartregenerate the certificate in that case, or is that better handled with the multi-certificate store?