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



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Good.understand
View Tutorial          By: Selva at 2009-12-29 23:27:29

2. How do you remove an element from the map?
View Tutorial          By: Shreejit at 2012-01-29 16:53:27

3. need to be explained more
View Tutorial          By: parul at 2011-06-30 08:34:29

4. Great Thanks
View Tutorial          By: anawaz at 2012-10-05 10:28:20

5. yaar this example is easy to understand but other
View Tutorial          By: richa at 2009-09-08 13:52:37

6. Good explanation but I think there's a slight mist
View Tutorial          By: Cheeseman at 2009-05-19 10:12:11

7. I have a computer science lab final on tuesday (09
View Tutorial          By: kudas at 2009-06-07 10:55:06

8. Hi everybody,
cn u plz mail me the working

View Tutorial          By: Srijita at 2011-11-28 06:10:03

9. why we use the java in networking and What are the
View Tutorial          By: ali mohammed at 2015-10-11 22:34:36

10. Thanks bro...you save me from a great problem...ve
View Tutorial          By: Tishan at 2012-07-09 09:14:07