Skip to content

mod_ssl: Expose serialNumber (2.5.4.5) as standard env var from certi…#644

Closed
michael-o wants to merge 1 commit intoapache:trunkfrom
michael-o:DN-serialNumber
Closed

mod_ssl: Expose serialNumber (2.5.4.5) as standard env var from certi…#644
michael-o wants to merge 1 commit intoapache:trunkfrom
michael-o:DN-serialNumber

Conversation

@michael-o
Copy link
Copy Markdown
Member

…ficate DN

serialNumber (2.5.4.5) is a standard LDAP attribute embedded in the subject's and/or issuer's DN, extract it by standard means from the DN and expose via StdEnvVars.

This fixes BZ #35154.

…ficate DN

serialNumber (2.5.4.5) is a standard LDAP attribute embedded in the subject's
and/or issuer's DN, extract it by standard means from the DN and expose
via StdEnvVars.

This fixes BZ #35154.

Co-authored-by: Michael Osipov <[email protected]>
@michael-o
Copy link
Copy Markdown
Member Author

michael-o commented May 7, 2026

Verified and works perfectly for me via PHP and SSLUserName SSL_CLIENT_S_DN_SerialNumber.

@notroj
Copy link
Copy Markdown
Collaborator

notroj commented May 7, 2026

Thanks @michael-o any chance of a test case update too? https://github.com/apache/httpd-tests/blob/trunk/t/ssl/varlookup.t

@michael-o michael-o deleted the DN-serialNumber branch May 7, 2026 17:00
@michael-o
Copy link
Copy Markdown
Member Author

Thanks @michael-o any chance of a test case update too? https://github.com/apache/httpd-tests/blob/trunk/t/ssl/varlookup.t

Thanks! Checking...

Any chance to nominate for 2.4.x? The change is straight forward.

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