I have to post some data to a 3rd parties server using CFHTTP. All of the code is functioning fine when we go to a server with HTTP, however one of the servers that we post to is a HTTPS and as soon as it tried to connect I get 'connection failiure'
I did some searches and it seems that this might be related to the certificates on the CF server at my side, but I didn't clearly understand if this was indeed the issue and what the fix was, the solution I read was a little tricky to comprehend.
Can anybody throw any light on this?
I think you need to add the SSL Cert to the CF Java keystore.
Find CF Java Home EG:
\Program Files\Java\jdk1.6.0_24\jre Installed JDK
MAC Li / U – nix differ
CF Java Home add certificate to Keystore
CMD prompt (as administrator) CD D:\ColdFusion\runtime\jre\bin>
keytool -importcert -storepass changeit -noprompt
-alias friendly_name -keystore
../lib/security/cacerts -trustcacerts -file
where certificate_file.cer is the SSL cert.
Then restart CF to reload keystore
Restart ColdFusion Application Service SERVICES.MSC or other MAC Li / U - nix.