Skip to main content
Inspiring
December 15, 2011
質問

CFHTTP - SSL = Connection Failure

  • December 15, 2011
  • 返信数 1.
  • 3020 ビュー

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?

Thanks

Mark

このトピックへの返信は締め切られました。

返信数 1

Legend
December 15, 2011

Hi Mark,

I think you need to add the SSL Cert to the CF Java keystore.

Find CF Java Home EG:


\ColdFusion\runtime\jre Server
\Jrun4\jre Multiserver
\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
d:\temp\certificate_file.cer

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.

HTH, Carl.