RFC: nocerttimecheck - NTS on systems without an RTC

Yegor Yefremov yegorslists at googlemail.com
Tue Nov 24 13:30:16 UTC 2026


Hi,

I have opened a merge request that adds a nocerttimecheck option for
NTS clients:

  https://gitlab.com/NTPsec/ntpsec/-/merge_requests/1615

The problem: on a device without a battery-backed RTC the clock comes
up far off at boot. Every NTS-KE server certificate then looks expired
or not yet valid, NTS-KE never succeeds, and NTS never gets to set the
clock it needs to validate the certificate. Today the only way out is
noval, which drops certificate validation altogether.

devel/nts.adoc already describes a middle-ground option. The MR
implements a reduced form of it:

- Until ntpd has set the clock for the first time, NTS-KE ignores
  notBefore/notAfter (X509_V_FLAG_NO_CHECK_TIME). The chain, the
  signatures and the host name are still verified.
- A certificate that passed only because of that marks the association
  suspect. Once the clock is set, suspect associations drop their
  cookies and redo NTS-KE with full validation.
- The clock counts as set at the first step or the first slew into
  sync. Without a drift file the first slew only comes after the 300 s
  stepout interval, so waiting for it would let a suspect association
  serve for five minutes. With the step counted, the redo follows
  within seconds.

Not implemented: holding suspect associations back from selection, and
bounding the served time by the certificate validity period, both from
devel/nts.adoc.

Tested on the host (two ntpds in network namespaces, bench CA) and on
an ARM board with no RTC battery and its clock 13 days behind, for
server and pool. Details are in the MR.

Questions where I would value your opinion:

1. Is counting a clock step as "clock set" acceptable, or would you
   rather wait for the first slew?
2. Is the reduced form useful on its own, or do you want the selection
   hold-back from devel/nts.adoc before this goes in?
3. Is nocerttimecheck a good name for the option?

The patch was written with an AI assistant (Claude) and tested on the
hardware above.

Thanks,
Yegor


More information about the devel mailing list