This error is troubling me since last 4 days...Please help.. I don't know if the error is in my server configuration or in the application?
Here is what i ve done...
My CAS server runs on Tomcat at port no 8443
Here is the configuration sever.xml for tomcat
I ve created my keystore file using keytool and stored at e:\ as shown.Code:<Connector SSLEnabled="true" clientAuth="false" keystoreFile="E:/my.keystore" keystorePass="password" maxThreads="150" port="8443" protocol="HTTP/1.1" scheme="https" secure="true" sslProtocol="TLS"/>
In chrome, when i run the application, i am redirected to the CAS login page.
But when i enter username and password, i get the error java.security.cert.CertificateException: No name matching localhost found error
Here is my security.xml
Why i am getting this error?Code:<security:http entry-point-ref="casAuthenticationEntryPoint" auto-config="true" use-expressions="true"> <security:intercept-url pattern="/**" access="hasRole('ROLE_USER')"></security:intercept-url> <security:custom-filter position="CAS_FILTER" ref="casAuthenticationFilter"></security:custom-filter> </security:http> <bean id="casAuthenticationFilter" class="org.springframework.security.cas.web.CasAuthenticationFilter"> <property name="filterProcessesUrl" value="/j_spring_cas_security_check"></property> <property name="authenticationManager" ref="authenticationManager"></property> </bean> <security:authentication-manager alias="authenticationManager"> <security:authentication-provider ref="casAuthenticationProvider"></security:authentication-provider> </security:authentication-manager> <bean id="serviceProperties" class="org.springframework.security.cas.ServiceProperties"> <property name="service" value="http://localhost:7070/org/j_spring_cas_security_check"></property> <property name="sendRenew" value="true"></property> </bean> <bean id="casAuthenticationEntryPoint" class="org.springframework.security.cas.web.CasAuthenticationEntryPoint"> <property name="loginUrl" value="https://localhost:8443/cas-server-webapp-3.5.1/"></property> <property name="serviceProperties" ref="serviceProperties"></property> </bean> <bean id="casAuthenticationProvider" class="org.springframework.security.cas.authentication.CasAuthenticationProvider"> <property name="userDetailsService" ref="userService"></property> <property name="serviceProperties" ref="serviceProperties"></property> <property name="ticketValidator"> <bean class="org.jasig.cas.client.validation.Cas20ServiceTicketValidator"> <constructor-arg index="0" value="https://localhost:8443/cas-server-webapp-3.5.1"></constructor-arg> </bean> </property> <property name="key" value="casAuthenticationProvider"></property> </bean> <!-- The users available for this application. --> <security:user-service id="userService"> <security:user name="user" password="user" authorities="ROLE_USER"></security:user> </security:user-service>
Thank you.


Reply With Quote