centOS+apache+mod_ssl+mod_phpの環境に+α(クライアント証明)httpsでphpにアクセスして環境変数を見る。

$_SERVER["HTTPS"]=>on
$_SERVER["SSL_VERSION_INTERFACE"]=>mod_ssl/2.2.3
$_SERVER["SSL_VERSION_LIBRARY"]=>OpenSSL/0.9.8e-fips-rhel5
$_SERVER["SSL_PROTOCOL"]=>TLSv1
$_SERVER["SSL_SECURE_RENEG"]=>true
$_SERVER["SSL_COMPRESS_METHOD"]=>NULL
$_SERVER["SSL_CIPHER"]=>AES128-SHA
$_SERVER["SSL_CIPHER_EXPORT"]=>false
$_SERVER["SSL_CIPHER_USEKEYSIZE"]=>128
$_SERVER["SSL_CIPHER_ALGKEYSIZE"]=>128
$_SERVER["SSL_CLIENT_VERIFY"]=>SUCCESS
$_SERVER["SSL_CLIENT_M_VERSION"]=>3
$_SERVER["SSL_CLIENT_M_SERIAL"]=>03
$_SERVER["SSL_CLIENT_V_START"]=>Aug 15 03:23:28 2010 GMT
$_SERVER["SSL_CLIENT_V_END"]=>Aug 15 03:23:28 2011 GMT
$_SERVER["SSL_CLIENT_V_REMAIN"]=>365
$_SERVER["SSL_CLIENT_S_DN"]=>/C=JP/ST=Osaka/L=Chuo-ku/O=localhost Inc./CN=testuser
$_SERVER["SSL_CLIENT_S_DN_C"]=>JP
$_SERVER["SSL_CLIENT_S_DN_ST"]=>Osaka
$_SERVER["SSL_CLIENT_S_DN_L"]=>Chuo-ku
$_SERVER["SSL_CLIENT_S_DN_O"]=>localhost Inc.
$_SERVER["SSL_CLIENT_S_DN_CN"]=>testuser
$_SERVER["SSL_CLIENT_I_DN"]=>/C=JP/ST=Osaka/O=localhost Inc./CN=PrivateCA
$_SERVER["SSL_CLIENT_I_DN_C"]=>JP
$_SERVER["SSL_CLIENT_I_DN_ST"]=>Osaka
$_SERVER["SSL_CLIENT_I_DN_O"]=>localhost Inc.
$_SERVER["SSL_CLIENT_I_DN_CN"]=>PrivateCA
$_SERVER["SSL_CLIENT_A_KEY"]=>rsaEncryption
$_SERVER["SSL_CLIENT_A_SIG"]=>sha1WithRSAEncryption
$_SERVER["SSL_SERVER_M_VERSION"]=>3
$_SERVER["SSL_SERVER_M_SERIAL"]=>01
$_SERVER["SSL_SERVER_V_START"]=>Aug 15 03:09:49 2010 GMT
$_SERVER["SSL_SERVER_V_END"]=>Aug 15 03:09:49 2011 GMT
$_SERVER["SSL_SERVER_S_DN"]=>/C=JP/ST=Osaka/L=Chuo-ku/O=localhost Inc./CN=192.168.0.133
$_SERVER["SSL_SERVER_S_DN_C"]=>JP
$_SERVER["SSL_SERVER_S_DN_ST"]=>Osaka
$_SERVER["SSL_SERVER_S_DN_L"]=>Chuo-ku
$_SERVER["SSL_SERVER_S_DN_O"]=>localhost Inc.
$_SERVER["SSL_SERVER_S_DN_CN"]=>192.168.0.133
$_SERVER["SSL_SERVER_I_DN"]=>/C=JP/ST=Osaka/O=localhost Inc./CN=PrivateCA
$_SERVER["SSL_SERVER_I_DN_C"]=>JP
$_SERVER["SSL_SERVER_I_DN_ST"]=>Osaka
$_SERVER["SSL_SERVER_I_DN_O"]=>localhost Inc.
$_SERVER["SSL_SERVER_I_DN_CN"]=>PrivateCA
$_SERVER["SSL_SERVER_A_KEY"]=>rsaEncryption
$_SERVER["SSL_SERVER_A_SIG"]=>sha1WithRSAEncryption
$_SERVER["SSL_SESSION_ID"]=>B1BB9785C48D6056A45B8149372D63C69A8B0124E629EE7AFC9C308B9A368E75
$_SERVER["HTTP_HOST"]=>192.168.0.133
$_SERVER["HTTP_CONNECTION"]=>keep-alive
$_SERVER["HTTP_USER_AGENT"]=>Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.126 Safari/533.4
$_SERVER["HTTP_ACCEPT"]=>application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
$_SERVER["HTTP_ACCEPT_ENCODING"]=>gzip,deflate,sdch
$_SERVER["HTTP_ACCEPT_LANGUAGE"]=>ja,en-US;q=0.8,en;q=0.6
$_SERVER["HTTP_ACCEPT_CHARSET"]=>Shift_JIS,utf-8;q=0.7,*;q=0.3
$_SERVER["PATH"]=>/sbin:/usr/sbin:/bin:/usr/bin
$_SERVER["SERVER_SIGNATURE"]=>
Apache/2.2.3 (CentOS) Server at 192.168.0.133 Port 443

$_SERVER["SERVER_SOFTWARE"]=>Apache/2.2.3 (CentOS)
$_SERVER["SERVER_NAME"]=>192.168.0.133
$_SERVER["SERVER_ADDR"]=>192.168.0.133
$_SERVER["SERVER_PORT"]=>443
$_SERVER["REMOTE_ADDR"]=>192.168.0.1
$_SERVER["DOCUMENT_ROOT"]=>/var/www/html
$_SERVER["SERVER_ADMIN"]=>root@localhost
$_SERVER["SCRIPT_FILENAME"]=>/var/www/html/index.php
$_SERVER["REMOTE_PORT"]=>64700
$_SERVER["GATEWAY_INTERFACE"]=>CGI/1.1
$_SERVER["SERVER_PROTOCOL"]=>HTTP/1.1
$_SERVER["REQUEST_METHOD"]=>GET
$_SERVER["QUERY_STRING"]=>
$_SERVER["REQUEST_URI"]=>/
$_SERVER["SCRIPT_NAME"]=>/index.php
$_SERVER["PHP_SELF"]=>/index.php
$_SERVER["REQUEST_TIME"]=>1281843036