cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

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

 

jmartin
Member
2 REPLIES 2

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.

RaynorC1emen7
Expert

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.
Lilith
Administrator Administrator
Administrator