Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

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

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

  • vivek130887 Profile Picture
    vivek130887 10 on at
    RE: CRM 2011 - External Web service - Could not establish trust relationship for the SSL/TLS secure channel

    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

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: CRM 2011 - External Web service - Could not establish trust relationship for the SSL/TLS secure channel

    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.

  • Brijesh R Profile Picture
    Brijesh R on at
    RE: CRM 2011 - External Web service - Could not establish trust relationship for the SSL/TLS secure channel

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

  • Suggested answer
    pavanmanideep Profile Picture
    pavanmanideep 1,329 on at
    RE: CRM 2011 - External Web service - Could not establish trust relationship for the SSL/TLS secure channel

    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/

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans