I am implementing Client certificate authentication with Spring security using tomcat server
I have configured tomcat server and added <X-509>
tag in my application_context.xml.
then i started server. and when i was trying to login i got above exception.
Configuration for tomcat :
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
sslProtocol="TLS"
keystoreFile="conf/tomcat.keystore"
keystorePass="password"
truststoreFile="conf/tomcat.truststore"
truststorePass="password"
clientAuth="true"
connectionTimeout ="20000"
/>
Application-context.xml
<x509 subject-principal-regex="CN(.*?)," user-service-ref="UserDetailsService"/>