Programming Tutorials

Comment on Tutorial - javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target By Ramlak



Comment Added by : gopala krishna

Comment Added at : 2012-04-02 07:17:09

Comment on Tutorial : javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target By Ramlak
Unable to connect with https:\\localhost:8443 but i can with 8080
My Enviroment is :
Java: C:\Program Files\Java\jdk1.6.0\bin
Tomcat : D:\Apache Software Foundation\Tomcat 6.0
Generating the KeyStore file
C:\Program Files\Java\jdk1.6.0\bin
keytool -genkey -alias techtracer -keypass ttadmin -keystore techtracer.bin -storepass ttadmin
Configured Tomcat for using the Keystore file
1. My http port no :
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
2. . Put the techtracer.bin file in the webapps directory of Tomcat
3. Configured Https Port
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="../webapps/techtracer.bin" keystorePass="ttadmin" />
I started the server with http://localhost:8080
Its working fine
But while its not working fine with https://localhost:8443


plz help me out


View Tutorial