cancel
Showing results for 
Search instead for 
Did you mean: 

SSLHandshakeException in Java Developments

Former Member
0 Kudos

Hi Experts,

Please help me with following issue.

I am Consuming SAP PI webservice in my Servlet code. Also Authenticating  the Webservice with User ID & Password in the same Code. When i deploy and run the application in SAP Netweaver Server 7.4. I'm getting following issue.

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


I have added trusted key in the NWA of Server under TrustedCA's.


Still I facing the issue. Kindly suggest me to fix this issue.


Thanks,

Karthick

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member432219
Active Participant
0 Kudos

Hi Karthick

It would appear that your code is not using the AS Java for certificate management, without a code snippet or stack trace I cannot be sure, but I recommend adding the relevant cert(s) to JAVA_HOME/jre/lib/security/cacerts using the JDKs keytool utility and see if that resolves the SSL issue

Maybe you'll find this thread useful, for a different scenario but the concept is the same