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)

TrustFailure: Could not establish trust relationship for the SSL/TLS secure channel, Dynamics 365 online

(0) ShareShare
ReportReport
Posted on by

Hi,

I have a plugin calling an external web service to retrieve some data.

Just a normal web request:

webRequest = WebRequest.Create(p_Url);
webRequest.Method = WebRequestMethods.Http.Post;
webRequest.Headers[HttpRequestHeader.Authorization.ToString()] = "Bearer " + p_ApiKey;

byte[] byteArray = Encoding.UTF8.GetBytes(p_Json);
webRequest.ContentType = "application/json";
webRequest.ContentLength = byteArray.Length;

Stream dataStream = webRequest.GetRequestStream();
dataStream.Write(byteArray, 0, byteArray.Length);
dataStream.Close();

string searchTokenResponse; using (IWebResponse response = webRequest.GetResponse()) { using (Stream dataStream = response.GetResponseStream()) { using (StreamReader streamReader = new StreamReader(dataStream)) { searchTokenResponse = streamReader.ReadToEnd(); } } }

The above code works fine in my Dynamics CRM 8.1 instance, but does not in my Dynamics CRM 8.2 instance. It fails with the error: Could not establish trust relationship for the SSL/TLS secure channel.

Any clues?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Andreas Cieslik Profile Picture
    9,267 on at

    I think for 8.2. authentication you need the new Dyn 365 SDK assemblies.

  • sbelzile Profile Picture
    on at

    I don't see the link. I am calling an external service, not Dynamics API.

  • Suggested answer
    Andreas Cieslik Profile Picture
    9,267 on at

    Are you sure your external service endpoint's SSL certificate is valid?

  • sbelzile Profile Picture
    on at

    Certificate emitted by Go Daddy, endpoint is correct.

    As I said, works with CRM 8.1.

  • sbelzile Profile Picture
    on at

    The fact that the certificate has been issued by Go Daddy seems to be the problem. I can call any service that uses a certificate from a different authority.

  • sbelzile Profile Picture
    on at

    Thank you,

    Do you have other information about the problem? Work around?

  • JE-14021252-0 Profile Picture
    50 on at

    We have seen the same issue with third party integrations from PowerObjects which are calling out to their own cloud.

    At advice of PowerObjects we have relayed to MSFT and are waiting for their response

  • sbelzile Profile Picture
    on at

    Looks like Microsoft fixed the problem. Is now working properly since yesterday.

  • acraig Profile Picture
    on at

    Is this resolved yet? We are still seeing this issue in a dyn 365 environment gov instance.  If so, was the fix deployed to commercial or gov cloud?

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