libp2p / js-libp2p

The JavaScript Implementation of libp2p networking stack.
https://libp2p.io
Other
2.27k stars 435 forks source link

fix: remove ms from TLS notAfter date #2464

Closed achingbrain closed 3 months ago

achingbrain commented 3 months ago

Partial revert of #2457. We can specify dates in the far future, causing @peculiar/x509 to use GeneralizedTime values, but it doesn't strip fractional seconds as per RFC 5280 so do it ourselves.

Change checklist