我正在进行基于证书的客户端访问控制。我让Apache确保证书是好的,然后将它与我们数据库中的用户匹配。我遇到的问题是Apache插入$_SERVER[]
的所有字段都将出现REDIRECT_SSL_*
而不是SSL_*
。
我得到了:
REDIRECT_SSL_CLIENT_S_DN_CN = CAcert WoT User
REDIRECT_SSL_CLIENT_S_DN_Email = name@example.com
REDIRECT_SSL_CLIENT_I_DN_O = Root CA
REDIRECT_SSL_CLIENT_I_DN_OU = http://www.cacert.org
REDIRECT_SSL_CLIENT_I_DN_CN = CA Cert Signing Authority
REDIRECT_SSL_CLIENT_I_DN_Email = support@cacert.org
REDIRECT_SSL_CLIENT_VERIFY = SUCCESS
...
我读过的所有文件都表明我应该得到:
SSL_CLIENT_S_DN_CN = CAcert WoT User
SSL_CLIENT_S_DN_Email = name@example.com
SSL_CLIENT_I_DN_O = Root CA
SSL_CLIENT_I_DN_OU = http://www.cacert.org
SSL_CLIENT_I_DN_CN = CA Cert Signing Authority
SSL_CLIENT_I_DN_Email = support@cacert.org
SSL_CLIENT_VERIFY = SUCCESS
...
为什么会出现不同的情况?