From: Joe Orton
C,ST,L,O,OU,CN,T,I,G,S,D,UID,Email
. In Apache 2.1 and
later, x509 may also include a numeric _n
suffix. If the DN in question contains multiple attributes of the
-same name, this suffix is used as an index to select a particular
-attribute. For example, where the server certificate subject DN
-included two OU fields, SSL_SERVER_S_DN_OU_0
and
-SSL_SERVER_S_DN_OU_1
could be used to reference each.
+same name, this suffix is used as a zero-based index to select a
+particular attribute. For example, where the server certificate
+subject DN included two OU attributes, SSL_SERVER_S_DN_OU_0
+and
+SSL_SERVER_S_DN_OU_1
could be used to reference each. A
+variable name without a _n
suffix is equivalent to that
+name with a _0
suffix; the first (or only) attribute.
+When the environment table is populated using
+the StdEnvVars
option of
+the SSLOptions
directive, the
+first (or only) attribute of any DN is added only under a non-suffixed
+name; i.e. no _0
suffixed entries are added.
The format of the *_DN variables has changed in Apache HTTPD
2.3.11. See the LegacyDNStringFormat
option for
diff --git a/docs/manual/mod/mod_ssl.xml b/docs/manual/mod/mod_ssl.xml
index f4ebecaaab..bb2400877e 100644
--- a/docs/manual/mod/mod_ssl.xml
+++ b/docs/manual/mod/mod_ssl.xml
@@ -101,10 +101,18 @@ compatibility variables.
C,ST,L,O,OU,CN,T,I,G,S,D,UID,Email
. In Apache 2.1 and
later, x509 may also include a numeric _n
suffix. If the DN in question contains multiple attributes of the
-same name, this suffix is used as an index to select a particular
-attribute. For example, where the server certificate subject DN
-included two OU fields, SSL_SERVER_S_DN_OU_0
and
-SSL_SERVER_S_DN_OU_1
could be used to reference each.
+same name, this suffix is used as a zero-based index to select a
+particular attribute. For example, where the server certificate
+subject DN included two OU attributes, SSL_SERVER_S_DN_OU_0
+and
+SSL_SERVER_S_DN_OU_1
could be used to reference each. A
+variable name without a _n
suffix is equivalent to that
+name with a _0
suffix; the first (or only) attribute.
+When the environment table is populated using
+the StdEnvVars
option of
+the _0
suffixed entries are added.
The format of the *_DN variables has changed in Apache HTTPD
2.3.11. See the LegacyDNStringFormat
option for