Merge request !1592 broke my testing setup

Hal Murray halmurray at sonic.net
Wed Nov 11 08:45:03 UTC 2026


This is the name from CN vs SAN tangle.


commit fd749194f36d9795db234164a8943eadb064c5fc
Author: Matt Selsky <matthew.selsky at twosigma.com>
Date:   Tue Nov 10 01:29:28 2026 +0000

    ntpd/nts_client.c: RFC 8915 fixes for NTS-KE response parsing

    RFC 8915 section 3 requires clients to follow RFC 6125 when checking
    the NTS-KE server's identity, and RFC 6125 section 6.4.4 forbids
    matching the subject Common Name when the certificate has DNS names
    in its Subject Alternative Name. "Fix derecation warning from OpenSSL
    4.1.0-alpha1" set X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT so that a
    self-signed test certificate would match by CN, which makes OpenSSL
    accept a certificate whose CN, but none of whose DNS SANs, names the
    server.
    
    Drop the flag. Without it, X509_check_host(3) documents that the CN
    is still checked when a certificate has no DNS SANs. A test
    certificate that relies on its CN needs the name added as a DNS SAN,
    or the client's server line needs noval.

-        SSL_set_hostflags(ssl, X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS | 
X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT);
+        SSL_set_hostflags(ssl, X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS);

------

Does anybody else use self signed certificates for testing on their local 
LAN?

I set things up ages ago, I got the host name into the CN slot and left 
the SAN slot empty.  If I'm the only one with this problem, then we should 
add a note in NEWS and I'll figure out how to fix my stuff.  If others 
have the same problem, maybe we should put a warning in the next release 
announcement and give others a release cycle to fix their stuff.

------

>From the above:

>     Without it, X509_check_host(3) documents that the CN
>     is still checked when a certificate has no DNS SANs

That sounds like my setup should work.  But it doesn't.  Is this a bug in 
OpenSSL?

-------

Does anybody have a good recipe for making self signed certificates?


-- 
These are my opinions.  I hate spam.





More information about the devel mailing list