-
Notifications
You must be signed in to change notification settings - Fork 28.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crypto: add validFromDate and validToDate fields to X509Certificate
#54159
base: main
Are you sure you want to change the base?
Conversation
|
Review requested:
|
isValid property for X509CertificatevalidFrom and validTo fields of X509Certificate to Date
82d830e
to
e7983d7
Compare
e7983d7
to
21364a2
Compare
validFrom and validTo fields of X509Certificate to DatevalidFromDate and validToDate fields to X509Certificate
21364a2
to
e6cd807
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #54159 +/- ##
==========================================
+ Coverage 87.09% 87.32% +0.23%
==========================================
Files 648 648
Lines 182250 182367 +117
Branches 34967 34977 +10
==========================================
+ Hits 158732 159255 +523
+ Misses 16797 16376 -421
- Partials 6721 6736 +15
|
501fc75
to
8ae70d3
Compare
This comment was marked as outdated.
This comment was marked as outdated.
8ae70d3
to
a95df16
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This comment was marked as outdated.
This comment was marked as outdated.
a95df16
to
0411edb
Compare
|
sorry for the messy CI. I didn't realize @daeyeon Could you please help me check if it works now in the CI? |
This comment was marked as outdated.
This comment was marked as outdated.
0411edb
to
6977219
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Added equivalent fields to `X509Certificate` in Date form.
6977219
to
a88395d
Compare
Resolves #52931.
Since OpenSSL already provides validity checking based on the current time, it may be handy to provide such checks as a part of the X509Certificate API exposed by node. I have made some simple changes to provide such functionality using the default behavior ofX509_cmp_timeframe()provided by OpenSSL.Edit: Instead of providing the user with the date string format provided by OpenSSL's formatting for ASN.1 time objects, I have added parsing logic accordingly to provide them in the form of Javascript
Dateobjects instead to make user interaction easier with these fields.