Getting Sporadic "I/O Exception: peer not authenticated" Error Using CFHTTP
Hi all -
I'm running the Developer Edition of CF 2018. I'm doing a POST call to an https URL using CFHTTP:
<cfhttp url="https://www.theremotesite.com" method="post" result="httpResp" timeout="60">
<cfhttpparam type="header" name="Content-Type" value="application/json" />
<cfhttpparam type="body" value="#myData#">
</cfhttp>
The call works fine about 75% of the time, but for the other 25%, this comes back:

The same POST through the Postman app never results in this error.
I am seeing multiple posts on the Web about this problem, but the issues mentioned appear to be constant, not sporadic, and they seem to be related to CF9 and that era.
The solutions mentioned is some of those articles (updating the truststore, updating the JVM, swapping providers, etc) are not in my comfort zone, and I'm hesitant to make changes that will be problematic to back out. Some of thee articles are:
- https://www.raymondcamden.com/2011/01/12/Diagnosing-a-CFHTTP-issue-peer-not-authenticated
- https://www.hass.de/content/coldfusion-java-pkix-path-building-failed-javasecuritycertcertpathbuilderexception-could-not
- https://helpx.adobe.com/coldfusion/kb/import-certificates-certificate-stores-coldfusion.html
- https://coldfusion.adobe.com/2019/06/error-calling-cf-via-https-solved-updating-jvm/
I need to get this issue fixed soon, so if anyone has a soution, I'm all ears, and would be very appreciative to hear it!
