我使用SpringSecurity2.x对X.509证书的预身份验证。
certificateText是通过HttpServletRequest.getAttribute("CERTIFICATE")得到的。
有时,上面的调用返回"" (空)。我相信当HTTP会话过期时会发生这种情况。
什么能解释为什么HttpServletRequest.getAttribute("CERT")返回空?
例如,在Kerberos中编辑,在每个HTTP请求中都可以获得票证。证书并不总是存在于X.509 HTTP请求中吗?
发布于 2013-05-10 06:14:14
X509Certificate[] certs = (X509Certificate[]) request.getAttribute("javax.servlet.request.X509Certificate");确保支持长证书链:
worker.ajp13w.max_packet_size=65536中<Connector port="8089" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" packetSize="65536"/>中Ajp连接器的配置中Apache日志:http://httpd.apache.org/docs/2.2/logs.html#accesslog http://httpd.apache.org/docs/2.2/logs.html#errorlog http://httpd.apache.org/docs/2.2/mod/core.html#loglevel
https://stackoverflow.com/questions/16462300
复制相似问题