Solved

SSLHandshakeException:unable to find valid certification path to requested target

Posted on 2016-09-07
2
147 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Microservice architecture adoption brings many advantages, but can add intricacy. Selecting the right orchestration tool is most important for business specific needs.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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…

856 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