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
[x] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation if necessary (this includes comments as well)
[ ] I have added tests that prove my fix is effective or that my feature works
Partial revert of #2457. We can specify dates in the far future, causing
@peculiar/x509
to useGeneralizedTime
values, but it doesn't strip fractional seconds as per RFC 5280 so do it ourselves.Change checklist