Solved

SSLHandshakeException:unable to find valid certification path to requested target

Posted on 2016-09-07
2
50 Views
Last Modified: 2016-09-07
Getting below exception when connected to ldap host ldaps://xxxxgroup.corp.local:636

16:19:53,038 ERROR [org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl] Unable to connect to LDAP Server; check LDAP configuration javax.naming.CommunicationException: simple bind failed: xxxxgroup.corp.local:636 [Root exception is 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]

ran the below program for server xxxxgroup.corp.local:636 but still getting same exception.

https://raw.githubusercontent.com/escline/InstallCert/master/InstallCert.java
0
Comment
Question by:chaitu chaitu
2 Comments
 
LVL 35

Accepted Solution

by:
mccarl earned 500 total points
ID: 41787678
It's possible that the JRE that that program installed the servers certificate into is a different one to what your code is running with. I would recommend finding exactly which JRE your leap code is running with and checking/installing the certificate manually.
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 41787823
excellent
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now