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. Thank you, for simple and useful example.
View Tutorial          By: Dmitriy at 2011-09-04 20:53:53

2. It is very Important Site
View Tutorial          By: Shridhar Koli at 2011-12-29 11:43:29

3. Great Description. Helped a lot.
View Tutorial          By: Dee2019nc at 2009-11-08 18:26:22

4. I am wanting to use a Honeywell 4600g handheld sca
View Tutorial          By: bugdrvr1970 at 2012-01-25 17:27:43

5. No main class found
need favour
help

View Tutorial          By: Mudasir at 2012-11-10 17:09:57

6. But I have the same error ("javax.net.ssl.SSL
View Tutorial          By: azeemuddin at 2010-03-04 07:25:33

7. i want to need SCJD Dums. so please help me that w
View Tutorial          By: Dayamay singh at 2009-01-03 00:07:06

8. plz give me for css coding
View Tutorial          By: anil mani at 2008-04-19 01:20:06

9. Clear explaination..Thank You Sir...
View Tutorial          By: nishanth at 2014-06-16 08:58:04

10. I need to know the parameters that we need to pass
View Tutorial          By: puru at 2008-09-08 00:33:46