From 9608e8a7ffeaf7767545628fa266501c6a271f24 Mon Sep 17 00:00:00 2001 From: Benjamin Demarteau Date: Wed, 14 Jul 2021 10:08:00 +0000 Subject: [PATCH] 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 --- modules/ssl/ssl_engine_vars.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ssl/ssl_engine_vars.c b/modules/ssl/ssl_engine_vars.c index 6c45b65d400..83344bf8600 100644 --- a/modules/ssl/ssl_engine_vars.c +++ b/modules/ssl/ssl_engine_vars.c @@ -720,6 +720,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