title: How to get SSL_CLIENT_SAN_* env variables * in mod_ssl on apache 2.4 using PKI
body: <p>I'm new to apache PKI certs and php. I'm trying to find the SSL_CLIENT_SAN_(email) environment variable in the $_SERVER array (php).  I can see the other mod_ssl environment variables, but not the SSL_CLIENT_SAN_*.</p>
  
  <p>I'm using wamp, if that has any impact</p>
  
  <p>Is there a config I need to set ? </p>
  
  <p>I already have set: </p>
  
  <pre><code>SSLOptions +StdEnvVars 
  &lt;FilesMatch "\.(cgi|shtml|phtml|php)$"&gt;
      SSLOptions +StdEnvVars
  &lt;/FilesMatch&gt;
  &lt;Directory "/Apache24ah64/cgi-bin"&gt;
      SSLOptions +StdEnvVars
  &lt;/Directory&gt;
  </code></pre>
  
  <p>I have the following in $_SERVER:</p>
  
  <pre><code>[SSL_TLS_SNI] =&gt; SOMESERVERURL 
  [SSL_SERVER_S_DN_CN] =&gt; SOMESERVERURL
  [SSL_SERVER_I_DN_O] =&gt; Root CA 
  [SSL_SERVER_I_DN_OU] =&gt; http://www.cacert.org 
  [SSL_SERVER_I_DN_CN] =&gt; CA Cert Signing Authority 
  [SSL_SERVER_I_DN_Email] =&gt; support@cacert.org
  [SSL_CLIENT_S_DN_C] =&gt; US [
  [SSL_CLIENT_S_DN_O] =&gt; SOMEOGANIZATION
  [SSL_CLIENT_S_DN_OU] =&gt; ECA 
  [SSL_CLIENT_S_DN_OU_1] =&gt; SOMECOMPANY
  [SSL_CLIENT_S_DN_OU_2] =&gt; SOMECOMPANY 
  [SSL_CLIENT_S_DN_CN] =&gt;LastName.FirstName.ABCDEFG1234567.ID 
  [SSL_CLIENT_I_DN_C] =&gt; US
  [SSL_CLIENT_I_DN_O] =&gt; SOMEOGANIZATION 
  [SSL_CLIENT_I_DN_OU] =&gt; ECA
  [SSL_CLIENT_I_DN_OU_1] =&gt; Certification Authorities
  [SSL_CLIENT_I_DN_CN] =&gt; SOMEOGANIZATION 
  [SSL_VERSION_INTERFACE] =&gt; mod_ssl/2.4.9 
  [SSL_VERSION_LIBRARY] =&gt; OpenSSL/1.0.1g 
  [SSL_PROTOCOL**]=&gt; TLSv1.2 
  [SSL_SECURE_RENEG] =&gt; true 
  [SSL_COMPRESS_METHOD] =&gt; NULL 
  [SSL_CIPHER] =&gt; ECDHE-RSA-AES128-GCM-SHA256 
  [SSL_CIPHER_EXPORT] =&gt;false
  [SSL_CIPHER_USEKEYSIZE] =&gt; 128 
  [SSL_CIPHER_ALGKEYSIZE] =&gt; 128
  [SSL_CLIENT_VERIFY] =&gt; SUCCESS 
  [SSL_CLIENT_M_VERSION] =&gt; 3
  [SSL_CLIENT_M_SERIAL] =&gt; 1EDF 
  [SSL_CLIENT_V_START] =&gt; Aug 18 18:42:46 2015 GMT 
  [SSL_CLIENT_V_END] =&gt; Aug 17 18:42:46 2016 GMT
  [SSL_CLIENT_V_REMAIN] =&gt; 272 
  [SSL_CLIENT_S_DN] =&gt; CN=LastName.FirstName.ABCDEFG1234567.ID,OU=R2AD,OU=ORC,OU=ECA,O=SOMEOGANIZATION,C=US
  [SSL_CLIENT_I_DN] =&gt; CN=SOMEOGANIZATION,OU=Certification  Authorities,OU=SOMEOGANIZATION,O=SOMEOGANIZATION,C=US
  [SSL_CLIENT_A_KEY] =&gt; rsaEncryption 
  [SSL_CLIENT_A_SIG] =&gt; sha1WithRSAEncryption 
  [SSL_SERVER_M_VERSION] =&gt; 3
  [SSL_SERVER_M_SERIAL] =&gt; 116DAF 
  [SSL_SERVER_V_START] =&gt; Nov 19 11:38:28 2015 GMT 
  [SSL_SERVER_V_END] =&gt; May 17 11:38:28 2016 GMT
  [SSL_SERVER_S_DN] =&gt; CN=SOMESERVER 
  [SSL_SERVER_I_DN] =&gt; emailAddress=support@cacert.org,CN=CA Cert Signing Authority,OU=http://www.cacert.org,O=Root CA 
  [SSL_SERVER_A_KEY] =&gt;rsaEncryption 
  [SSL_SERVER_A_SIG] =&gt; sha256WithRSAEncryption
  [SSL_SESSION_RESUMED] =&gt; Initial
  </code></pre>
  
  <p>Help is appreciated     </p>