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



Ask a Question

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. really very-2 good site....

thanks

View Tutorial          By: Priti at 2012-02-06 03:00:13

2. hi sir
im a student of aitm im doing speec

View Tutorial          By: sinan ahmed at 2015-02-09 05:45:49

3. how to use tokenizer "No.1 hello,No.2 world,N
View Tutorial          By: saanu at 2011-03-04 00:41:21

4. dear i have different files of ms access 2010 like
View Tutorial          By: neeo at 2012-01-16 07:02:20

5. It encourage the learners

Learners

View Tutorial          By: sureshkumar p at 2010-12-22 04:13:04

6. how to downlow the different 5 files please !!
View Tutorial          By: Agnin at 2009-06-24 05:29:09

7. I have this line of code but i don't understand
View Tutorial          By: Xris at 2011-11-08 06:01:01

8. Dude, you made my day.
View Tutorial          By: Sebasti├ín at 2011-08-29 14:01:10

9. I made this "In your AndroidManifest.xml file
View Tutorial          By: lalo at 2011-11-20 05:56:43

10. Very helpful stuff. Might I just add that you didn
View Tutorial          By: Donovan Aces at 2011-09-12 06:08:20