Skip to main content

Notifications

Announcements

No record found.

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,021

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

  • Suggested answer
    Sheikh Sohail Profile Picture
    6,125 on at
    RE: 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.

    docs.microsoft.com/.../certificate-rotation-on-prem

  • Suggested answer
    Sheikh Sohail Profile Picture
    6,125 on at
    RE: 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.

    Hope it will help you.

    ax.docentric.com/.../

  • source258147 Profile Picture
    1,021 on at
    RE: 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.

    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
    RE: 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.

    Please contact the person who allocate the VM or cloud environment

    cloudblogs.microsoft.com/.../

  • source258147 Profile Picture
    1,021 on at
    RE: 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.

    can I get more help, please

  • source258147 Profile Picture
    1,021 on at
    RE: 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.

    hi Will Wu

    Can't find Rotate secrets 

    pastedimage1630900565038v1.png

  • WillWU Profile Picture
    22,352 on at
    RE: 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.

    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.

  • Suggested answer
    ergun sahin Profile Picture
    8,816 Moderator on at
    RE: 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.

    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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,265 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,927 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans