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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

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.

(0) ShareShare
ReportReport
Posted on by 1,025

Hi experts,

We have a third-party module purchase it from the partner and we don't have the source code.

It worked very well until yesterday now I get this 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.

Thanks

I have the same question (0)
  • Suggested answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    Could the TLS version have changed? If there is such a change, you can ask the 3rd party and add the new TLS in the code.

    System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls12; 

    The situation is more difficult if the problem is caused by the SSL certificate.
    In environments where we are in control, the solution is quite simple. You will add it to Trusted Root Certification Authorities\Certificates.

    https://ax.docentric.com/how-to-configure-a-safe-connection-to-a-d365fo-in-a-local-development-environment/


    It is also necessary to look at how it is added in the cloud environment. (If the certificate has an end date you can try your luck with rotate secrets but I'm not sure which certificates this feature affects) blog.johanpersson.nu/

    As a workaround you can use "ServerCertificateValidationCallback" but in that case it will trust everything.

    stackoverflow.com/.../could-not-establish-trust-relationship-for-the-ssl-tls-secure-channel-the-remot

  • WillWU Profile Picture
    22,363 on at

    Hi source258147,

    If it's a cloud hosted system, please login to LCS, on the environment details and go to Maintain - Rotate secrets - Rotate SSL certificates.

    If it doesn't work , you have to contact the partner for help.

  • source258147 Profile Picture
    1,025 on at

    hi Will Wu

    Can't find Rotate secrets 

    pastedimage1630900565038v1.png

  • source258147 Profile Picture
    1,025 on at

    can I get more help, please

  • Suggested answer
    Sheikh Sohail Profile Picture
    6,125 on at

    Please contact the person who allocate the VM or cloud environment

    cloudblogs.microsoft.com/.../

  • source258147 Profile Picture
    1,025 on at

    Hi Sohail Sheikh,

    Thanks for your reply

    this issue happens also in my local dev machine 10.0.20

  • Suggested answer
    Sheikh Sohail Profile Picture
    6,125 on at

    Hope it will help you.

    ax.docentric.com/.../

  • Suggested answer
    Sheikh Sohail Profile Picture
    6,125 on at

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…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 605 Super User 2025 Season 2

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 437 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 348 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans