Closed pandafy closed 4 years ago
Regarding test for certificate having GeneralizedTime
OpenSSL.crypto.X509.getAfter()
and OpenSSL.crypto.X509.getAfter()
returns timestamp formatted as ASN.1 TIME
irrespective of date format in certificate. Link to documentation.
Kindly have a look on these also Using pyOpenSSL to print validation period dates from certificate Using OpenSSL CLI to print validation period dates from certificate
I have used this certicate having a start date before 2050 and end date after 2050.
Thus, it is not possible to assert the time format in a test. Kindly suggest some other way to test this.
Added checks for encoding of datetime in proper format as mentioned in RFC5280 standard.
Fixes #53