Merge request !1592 broke my testing setup

Hal Murray halmurray at sonic.net
Thu Nov 12 05:02:54 UTC 2026


Gary said:
>> Does anybody else use self signed certificates for
> testing on their local LAN?
> Not me.  I moved to Let's Encrypt years ago.  But I don't see why it can
> not work. 

Let's Encrypt needs a public IP address for each system.

I started with the typical home internet setup with one public IP address 
on a modem/router that was also a firewall and did NAT.  I had a 
collection of test systems running on an internal LAN.  Self signed 
certificates seemed like the right way to go.

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




>> I set things up ages ago, I got the host name into the
>> CN slot and left the SAN slot empty.
> If that is what is broken, needs to be fixed.  How do you know that is
> the problem you are seeing? 

There is lots of logging on the client side.  You get things like this:

Let's encrypt:
 3 Nov 15:51:42 ntpd[729]: NTSc: set cert host: ntp1.glypnod.com
 3 Nov 15:51:42 ntpd[729]: NTSc: certificate subject name: 
/CN=ntp.glypnod.com
 3 Nov 15:51:42 ntpd[729]: NTSc: SAN:DNS ntp.glypnod.com, ntp1.glypnod.com
 3 Nov 15:51:42 ntpd[729]: NTSc: certificate is valid.

With flag:
 3 Nov 16:29:19 ntpd[724]: NTSc: set cert host: ted-pps.example.com
 3 Nov 16:29:19 ntpd[724]: NTSc: certificate subject name: 
/C=US/ST=CA/L=Menlo Park/O=Glypnod/CN=ted-pps.example.com
 3 Nov 16:29:19 ntpd[724]: NTSc: matching with subject:CN 
ted-pps.example.com
 3 Nov 16:29:19 ntpd[724]: NTSc: certificate is valid.

Without the flag:
11 Nov 02:38:16 ntpd[15852]: NTSc: set cert host: fed2.example.com
11 Nov 02:38:16 ntpd[15852]: NTSc: certificate subject name: 
/C=US/ST=CA/L=Menlo Park/O=Glypnod/CN=fed2.example.com
11 Nov 02:38:16 ntpd[15852]: NTSc: matching with subject:CN (null)
11 Nov 02:38:16 ntpd[15852]: NTSc: certificate invalid: 62=>hostname 
mismatch


> BTW, did you put your self root cert where NTS can find it?

Yes.  Without that, it doesn't work.  It also tests a lot of that stuff.

 3 Nov 15:51:49 ntpd[729]: NTSc: Using file /etc/ntp/Glypnod-root-cert.pem 
for root certificates.

A similar hack to avoid Russian CA signing a certificate.
 3 Nov 15:51:42 ntpd[729]: NTSc: Using file /etc/ntp/ISRG_Root_X1.pem for 
root certificates.


-- 
These are my opinions.  I hate spam.





More information about the devel mailing list