Skip to content

Conversation

@Jacq
Copy link

@Jacq Jacq commented Jul 22, 2024

For very long nextUpdate CRL could contain ASN1_GENERALIZEDTIME instead of ASN1_UTCTIME.
Should we take that into account when parsing the x509 crl file?
Cheers,
Jacq

Parse also ASN1_GENERALIZEDTIME por nextUpdate and thisUpdate not only ASN1_UTCTIME.
continue;
}
if($value['type'] == '17' && !array_key_exists('thisUpdate', $curr)) {
if(($value['type'] == '17' || $value['type'] == '18') && !array_key_exists('thisUpdate', $curr)) {
Copy link
Contributor

@parallels999 parallels999 Jul 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe better readability with in_array

if(in_array($value['type'], ['17', '18']) && !array_key_exists('thisUpdate', $curr)) {

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i also think that it is better to use in_array

@angeljqv angeljqv mentioned this pull request Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants