From: Eric Covener Date: Tue, 2 Jun 2026 17:13:55 +0000 (+0000) Subject: Merge r1933908 from trunk: X-Git-Tag: 2.4.68-rc1-candidate~27 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=bd7aecd4e74b620d9eccacee816ec4b7f23f7434;p=thirdparty%2Fapache%2Fhttpd.git Merge r1933908 from trunk: 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 Submitted by: Benjamin Demarteau Reviewed By: michaelo, jorton, rpluem Github: closes #644 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934900 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/changes-entries/ssl-serialnumber.txt b/changes-entries/ssl-serialnumber.txt new file mode 100644 index 0000000000..af82ca48c0 --- /dev/null +++ b/changes-entries/ssl-serialnumber.txt @@ -0,0 +1,4 @@ + *) mod_ssl: Add SerialNumber as a recognized attribute type for SSL + distinguished name variables. [Michael Osipov , + Benjamin Demarteau ] + diff --git a/modules/ssl/ssl_engine_vars.c b/modules/ssl/ssl_engine_vars.c index 4060c0f6a6..85f075978d 100644 --- a/modules/ssl/ssl_engine_vars.c +++ b/modules/ssl/ssl_engine_vars.c @@ -576,6 +576,7 @@ static const struct { { "G", NID_givenName, 1 }, { "S", NID_surname, 1 }, { "D", NID_description, 1 }, + { "SerialNumber", NID_serialNumber, 1 }, #ifdef NID_userId { "UID", NID_userId, 1 }, #endif