Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an Apex class exposed as a web service. When our Cold Fusion based website calls this service, they get the following error:

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

It seems to me that SF has a certificate for but not However the Sandbox had a certificate for and for

I have more details here:

Has anyone ran into this problem before?

Do I need to do something with Setup | Security Controls | Certificate and Key Management? I haven't used that before and the documentation seems to refer to using that when calling out to an external web service where I am having someone call my service.

share|improve this question

Have you tried this,

  1. revise the WSDL file, like location=""

  2. deploy the updated WSDL file in your Website again.

  3. call the Apex WS from your Website

I guess you can call the Apex WS from directly, and let Salesforce to transfer it to

share|improve this answer
That makes sense. I will give that a try. Thanks – tchrisbaker Dec 27 '12 at 16:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.