Skip to content

Commit 48f7879

Browse files
committed
mod_ssl: Expose serialNumber (2.5.4.5) as standard env var from certificate 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. PR: 35154 Co-authored-by: Michael Osipov <michaelo@apache.org> Submitted by: Benjamin Demarteau <benjamin.demarteau@liege.be> Github: closes #644 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933908 13f79535-47bb-0310-9956-ffa450edef68
1 parent 1d7ba6c commit 48f7879

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*) mod_ssl: Add SerialNumber as a recognized attribute type for SSL
2+
distinguished name variables. [Michael Osipov <michaelo apache.org>,
3+
Benjamin Demarteau <benjamin.demarteau liege.be>]
4+

modules/ssl/ssl_engine_vars.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,7 @@ static const struct {
720720
{ "G", NID_givenName, 1 },
721721
{ "S", NID_surname, 1 },
722722
{ "D", NID_description, 1 },
723+
{ "SerialNumber", NID_serialNumber, 1 },
723724
#ifdef NID_userId
724725
{ "UID", NID_userId, 1 },
725726
#endif

0 commit comments

Comments
 (0)