Skip to main content
March 24, 2010
Question

CFHTTP ERROR while Accessing SSL enabled site

  • March 24, 2010
  • 1 reply
  • 5489 views

While trying to consume webservice from other server. We get the following error

"I/O Exception: Name in certificate 'URL' does not match host name 'URL'

The code works fine in development environment. Whereas, when we are trying to consume with/without the port number as 443 using cfhttp tag with method as post . It is throwing the above error.

Environment :

Coldfusion 8
SQL Server 2005

Webserrvice Provider: Java/J2EE.


It appears that ColdFusion 8 does not support the "Subject Alternative Name" attribute of SSL certificates. I have even tried to import the certificate into the Java keystore (similar to untrusted certs) to no avail. I get the error: "I/O Exception: Name in certificate" (similar to untrusted certs).

The issue is that I need to use web services against loadBalancer.example.com but, the certs are written for memberServer01.example.com and memberServer02.example.com with loadBalancer.example.com listed in the "Subject Alternative Name" attribute.

Is there a solution for this other than getting new certs?

Can you please help us? If you require any other details kindly let me know

    This topic has been closed for replies.

    1 reply

    March 29, 2010

    We have imported the certificates as mentioned in the below link. Still we receive

    I/O Exception: Name in certificate `www.test.test.com' does not match host name 'wwwqa.test.test.com'

    http://livedocs.adobe.com/coldfusion/8/Tags_g-h_09.html

    Development server is in VMware environment. Is this could be an issue ?  Please advise.

    NaughtyDaffo
    Participant
    March 30, 2010

    Hi Siva,

    we have faced the same problem on our application. To overcome this we used the below workarround...

    Make the host entry for webservice provider [serviceprovider.test.com] pointing to its IP [172.99.71.12].

    In cfm file

    ---------------

    There's no need to add the proxy and the port in the cfm file.

                 <cfhttp method="Post" url="#WEBSERVICE_SERVICE_PROVIDER#" resolveurl="Yes">
                    <cfhttpparam type="Formfield" name="xmlValue" value="#tostring(xml)#">
                </cfhttp>

    The below URL will help you on debugging CFHTTP Request

    http://kb2.adobe.com/cps/998/9987e902.html