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 <michaelo@apache.org>
@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.

@michael-o
Copy link
Copy Markdown
Member Author

@notroj Trying to wrap around my head how the stuff works. As far as I understand I first need to modify https://metacpan.org/release/SHAY/Apache-Test-1.43/source/lib/Apache/TestSSLCA.pm#PApache::TestSSLCA and add some "serialNumber" before I can even modify the test. If so, who will publish a new version to CPAN?
The canonical repo is obviously https://svn.apache.org/repos/asf/perl/Apache-Test/trunk/

@notroj
Copy link
Copy Markdown
Collaborator

notroj commented May 8, 2026

@michael-o oohh.. I was thinking this is just the serial number for the cert which is already there... but it's in the DN. Don't worry about it, too painful to adjust the TestSSLCA.pm for it I expect.

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