I looked into source code of Spring Framework to find where is frase "No client certificate found in request". I've found this fragment:
Code:
private X509Certificate extractClientCertificate(HttpServletRequest request) {
X509Certificate[] certs = (X509Certificate[]) request.getAttribute("javax.servlet.request.X509Certificate");
if (certs != null && certs.length > 0) {
if (logger.isDebugEnabled()) {
logger.debug("X.509 client authentication certificate:" + certs[0]);
}
return certs[0];
}
if (logger.isDebugEnabled()) {
logger.debug("No client certificate found in request.");
}
return null;
}
So request.getAttribute("javax.servlet.request.X509Ce rtificate") is null.
What can I do to make it work? Why does Spring finds nothing?