SBX - Search With Button

SBX - Forum Post Title

CRM 2011 - External Web service - Could not establish trust relationship for the SSL/TLS secure channel

Microsoft Dynamics CRM Forum

Brijesh Darji asked a question on 22 May 2019 7:11 PM
My Badges

Question Status

Suggested Answer

Hi,

I am currently stuck with the issue related to custom workflow and it's badly impacting my project timeline. The custom workflow is calling external web service but always throws an error - "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. The remote certificate is invalid according to the validation procedure."

However, the same code works fine for the Console application.

Environment: CRM 2011

Workflow deployed in None mode (NOT a sandbox)

.NET framework: 4.0

Any guide or input appreciated.

Regards,

BrijeshR

Reply
Pavan Manideep Yaragani responded on 22 May 2019 11:06 PM
My Badges
Suggested Answer
Brijesh Darji responded on 22 May 2019 11:20 PM
My Badges

Thanks, Pavan, I will check and let you know about the outcome.

Reply
Suggested Answer

Hi Brijesh

The error message seems to suggest either the external site is not configured to run on HTTPS or certificate for SSL has expired or invalid. Your console app HTTP client might be ignoring cert validation error or if the site is only configured to use HTTP, the console app seems to be working with re-directed URL to work on HTTP.

Could you please make sure you can access the site with HTTPS in the browser with no certificate warning or errors?

If let's say HTTPS works fine and there are no cert validation errors, it could be that the CRM server is not able to do the SSL handshaking. You could try and run the console app code from the CRM server and see if this still works.

Reply
Pavan Manideep Yaragani responded on 22 May 2019 11:06 PM
My Badges
Suggested Answer
Suggested Answer

Hi Brijesh

The error message seems to suggest either the external site is not configured to run on HTTPS or certificate for SSL has expired or invalid. Your console app HTTP client might be ignoring cert validation error or if the site is only configured to use HTTP, the console app seems to be working with re-directed URL to work on HTTP.

Could you please make sure you can access the site with HTTPS in the browser with no certificate warning or errors?

If let's say HTTPS works fine and there are no cert validation errors, it could be that the CRM server is not able to do the SSL handshaking. You could try and run the console app code from the CRM server and see if this still works.

Reply

SBX - Two Col Forum

SBX - Migrated JS