Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update x509.php to parse ASN1_GENERALIZEDTIME #76

Open
Jacq wants to merge 1 commit intodealfonso:main from
Jacq:main
Open

Update x509.php to parse ASN1_GENERALIZEDTIME #76
Jacq wants to merge 1 commit intodealfonso:main from
Jacq:main

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

hidasw reacted with thumbs up emoji
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
edited
Loading

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

@dealfonso dealfonso Aug 28, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@dealfonso dealfonso dealfonso left review comments

+1 more reviewer

@parallels999 parallels999 parallels999 left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /