February 12, 2024
I/O Exception: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Comments
(3)
February 12, 2024
I/O Exception: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Newbie 1 posts
Followers: 0 people
(3)

Hi Experts,

I am facing same issue in my application when calling HTTPS services with we are using below versions:

I/O Exception: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Server Product ColdFusion
Version 2018,0,19,330149
Edition Enterprise
Operating System UNIX

JAVA

java version “11.0.17” 2022-10-18 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.17+10-LTS-269)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.17+10-LTS-269, mixed mode

TOMCAT SERVER

Please let me know if any details required.

Thanks!

3 Comments
Feb 15, 2024
Feb 15, 2024

I wrote up a blog entry on this a number of years ago: https://www.petefreitag.com/blog/how-resolve-java-https/ it lists out the most common reasons, for that error. A fairly common one is that the server you are trying to connect to is missing the intermediate certificate. I just helped someone with this same error yesterday, and the problem was that. This is common because browsers don’t usually throw a certificate error when the intermediate certificate is missing, but server side tools like cfhttp will.

Like
()
Feb 14, 2024
Feb 14, 2024

Try updating the JVM.  Yours is a year and half old and may have expired certificates.  Current version provided by Adobe is 11.0.22

Like
()
Feb 14, 2024
Feb 14, 2024

Not sure but maybe the certificate needs to be added to the keystore:  https://helpx.adobe.com/coldfusion/kb/import-certificates-certificate-stores-coldfusion.html   Especially if the cert is self-signed in a development environment.

Like
()
Add Comment