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

CFHTTP and wildcard SSL

Advocate ,
Jun 11, 2013 Jun 11, 2013

Copy link to clipboard

Copied

I'm using CF9. Has anyone been successful with CFHTTP when the target URL is using a wildcard SSL certificate? I've imported the cert and full cert path into the certificate store. I don't have any problems with non-wildcard certs, only wildcard certs. Thus far I've only found one reference to this topic and it simply stated "I have never been successful using wildcard certificates on CF8 and below." Yet there is no reference as to if or how to be successful with CF9 or above.

TOPICS
Advanced techniques

Views

1.4K

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
Enthusiast ,
Jul 11, 2013 Jul 11, 2013

Copy link to clipboard

Copied

What's the actual error you are getting?  I encountered something with ColdFusion 9 and thought it was a wildcard cert, but it turns out it was due to a SSL Certificate with Subject Alternative Names (SAN) and was getting javax.net.ssl.SSLException: Name in certificate 'gateway.testserver.com' does not match host name 'api.gateway.testserver.com'."  The service I was trying to connect to performed many internal tests and determined it was not on their end.  I reported it to Adobe here:
https://bugbase.adobe.com/index.cfm?event=bug&id=3566218

Also, are you able to post the secure domain's URL?  I'd be curious if it worked using CF8 w/Java 1.7.0_15.

Facebook appears to be using a wildcard SSL certificate.  Try connecting to their server:

     <cfhttp url="https://www.facebook.com/" method="GET"></CFHTTP>

     <CFDUMP VAR="#CFHTTP#">

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
Advocate ,
Jul 11, 2013 Jul 11, 2013

Copy link to clipboard

Copied

LATEST

The issue ended up being a certificate import issue and not a wildcard issue. I imported the certificat into the wrong cacerts location. Our server was configured to use the Oracle JVM instead of the one that came with CF. Once I imported the certificates into the correct location everything worked.

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