Skip to content

Commit 9608e8a

Browse files
bendemmichael-o
andcommitted
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. This fixes BZ #35154. Co-authored-by: Michael Osipov <michaelo@apache.org>
1 parent 1d7ba6c commit 9608e8a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)