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!
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.
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.
You must be logged in to post a comment.