• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CFHTTP - SSL = Connection Failure

Enthusiast ,
Dec 14, 2011 Dec 14, 2011

Copy link to clipboard

Copied

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

TOPICS
Advanced techniques

Views

2.9K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Dec 14, 2011 Dec 14, 2011

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation