Reply
Highlighted
Member
Posts: 1
Registered: ‎10-09-2012

AIM with java, SSL error, sun.security.validator.ValidatorException: PKIX path building failed

We are using AIM integration to submit transactions to authorize.net gateway. We have custom-written Java code that initiates SSL connection to the gateway. This integration had been working for a few years now without issues but recently we started to get intermittent SSL handshake errors - sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target


Is this indication that certificate is not found in the local keystore? (strange that this is intermittent) which exact certificate should be there, one from https://secure.authorize.net  ?

 

 

thanks for your help

 

Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: AIM with java, SSL error, sun.security.validator.ValidatorException: PKIX path building failed

Not familiar with Java. But if it failing to connect to AIM the url is https://secure.authorize.net.

It do sound like the cert keystore need to be updated.

Highlighted
Posts: 321
Topics: 5
Kudos: 37
Blog Posts: 5
Ideas: 0
Solutions: 26
Registered: ‎11-09-2011

Re: AIM with java, SSL error, sun.security.validator.ValidatorException: PKIX path building failed

You mention this happens irregularly. About what frequency of the time does this occur?

Also, do you have a stack trace for the times it does occur?

You may find this information useful--it provides a Java program that connects to a secure URL, and if the SSL session fails because of an inability to find a valid certification path, the program will then help you install the needed certificate.

https://blogs.oracle.com/gc/entry/unable_to_find_valid_certification

 

But even if the program helps you, I would really like to see the stack trace--which the program helpfully provides--and get an idea of how often this happens. Thanks.

--
"Move fast and break things," out. "Move carefully and fix what you break," in.