web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

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

(1) ShareShare
ReportReport
Posted on by

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

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    pavanmanideep Profile Picture
    1,331 on at

    Hi Brijesh,

    Please refer to the below blog posts...these can definitely help you troubleshot further...

    https://blogs.msdn.microsoft.com/friis/2017/10/10/troubleshooting-tls-ssl-scenario-3/

    https://www.saotn.org/fix-could-not-establish-trust-relationship-for-the-ssltls-secure-channel-error/

  • Brijesh R Profile Picture
    on at

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

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    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.

  • vivek130887 Profile Picture
    10 on at

    Brijesh, did the solution work.. We are also facing a similar issue where issue is coming from one of the FE Server but works fine from the other 2 FE Servers

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans