Hitesh Patel
Hitesh Patel

Reputation: 389

CFHTTP and HTTPS Post Issue

I am posting jobs in the XML format to HTTPS url using cfhttp POST. I get below error.

I/O Exception: Name in certicicate 'jobserve ltd' does not match hostname 'xml.jobserve.com'

So then according to instructions here http://www.coldfusionmuse.com/index.cfm/2005/1/29/keystore I have done below things.

Later went to post my request again...same issue. What else needs to be done? We use CF 8 and this is a multi domain SSL certificate (https://xml.jobserve.com).

Can you please help?

Thanks, Hitesh

Upvotes: 1

Views: 811

Answers (1)

genericHCU
genericHCU

Reputation: 4446

After inserting the certificate you must restart the ColdFusion server.

This Knowledge Base article has additional information. It also provides a different location for your truststore (cf_root/runtime/lib). Ultimately it needs to be the location specified in your jrun.xml file.

Note: If you are using JRun as the underlying J2EE server (either the Server Configuration or the Multiserver/J2EE with JRun Configuration) and have enabled SSL for the internal JRun Web server (JWS), you will need to import the certificate to the truststore defined in the jrun.xml file for the Secure JWS rather than the JRE key store. By default, the file is called "trustStore" and is typically located under jrun_root/lib for the Multiserver/J2EE with JRun configuration or cf_root/runtime/lib for the ColdFusion Server configuration. You use the same Java keytool to manage the trustStore.

From: Jrun Help / Import certificates | Certificate stores | ColdFusion

Naveen Chhabra's Blog also has similar information in a step by step process.

Upvotes: 3

Related Questions