Merge request !1592 broke my testing setup

Gary E. Miller gem at rellim.com
Thu Nov 12 21:31:12 UTC 2026


Yo Hal!

On Thu, 12 Nov 2026 01:14:01 -0800
Hal Murray <halmurray at sonic.net> wrote:

> >> It worked for years.  OpenSLL 4 broke things.
> >> Turning on that flag fixed them.  
> > Which flag?  

So the flag: X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT

> >> There is lots of logging on the client side.
> >> You get things like this:  
> 
> > Yeah, and often not enough.   
> 
> If you (or anybody else) notice something missing, please let me know.

I often do not notice what I can't see, But I'll try.

> The server side is a lot simpler than the client.  It doesn't have to 
> check the certificate.  I've got that down to 1 line per connection.
> And that can be split out to another file so it doesn't trash the
> main log fiile.

We really need to clen up the logging...

> The client side shouldn't happen very often so there is lots of
> logging for each connection.

Not an issue when adding logs for failures.

>   From https://docs.openssl.org/3.3/man3/X509_check_host/
> 
> The X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT flag causes the function to
> consider the subject DN even if the certificate contains at least one
> subject alternative name of the right type (DNS name or email address
> as appropriate); the default is to ignore the subject DN when at
> least one corresponding subject alternative names is present.
> 
>   From https://docs.openssl.org/4.1/man3/X509_check_host/

IMHO a good flag to have on.

> The git commit that dropped the flag says:
> 
>     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.  ...

IMHO a good idea.

> I think I'll go work on making modern certificates.

Nothing "modern" about using balid DNS host names in you certs.

That is all you need to fix.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 283 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20261112/34ecce0f/attachment.bin>


More information about the devel mailing list