Skip to content

Show an indicator of critical extensions in the openssl_x509_parse() …#20311

Closed
StephenWall wants to merge 11 commits into
php:masterfrom
StephenWall:critical
Closed

Show an indicator of critical extensions in the openssl_x509_parse() …#20311
StephenWall wants to merge 11 commits into
php:masterfrom
StephenWall:critical

Conversation

@StephenWall

Copy link
Copy Markdown
Contributor

…output in a backwards compatible way.

Fixes #20310

@StephenWall StephenWall requested a review from bukka as a code owner October 27, 2025 17:31
@StephenWall StephenWall force-pushed the critical branch 5 times, most recently from 97e7639 to 208d4d4 Compare October 30, 2025 21:17
@bukka

bukka commented Dec 9, 2025

Copy link
Copy Markdown
Member

This looks slightly strange. How about a new field criticalExtension that would contain string array of critical extension names?

@StephenWall

Copy link
Copy Markdown
Contributor Author

This looks slightly strange. How about a new field criticalExtension that would contain string array of critical extension names?

To clarify, $info['extensions'] is unchanged and a new $info['criticalExtensions'] has a list of the names of critical extensions?

$info['extensions'] => array (
  'basicConstraints' => 'CA:FALSE',
  ...
)

$info['criticalExtensions'] => array(
  'basicConstraints'
)

@bukka

bukka commented Dec 9, 2025

Copy link
Copy Markdown
Member

Yes, exactly.

@StephenWall

Copy link
Copy Markdown
Contributor Author

OK, self test runs cleanly, I think this is set.

@bukka

bukka commented Jan 13, 2026

Copy link
Copy Markdown
Member

Looks good from a quick look. I will check it out again tomorrow and merge it if I don't find anything.

@bukka bukka closed this in c1d2875 Jan 14, 2026
@StephenWall StephenWall deleted the critical branch February 17, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No critical extension indication in openssl_x509_parse() output.

2 participants