Resolving SSL/TLS Secure Channel Trust Errors in Dynamics 365 Finance and Operations

Introduction

 Have you ever encountered the error:
"The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel"
while deploying from Visual Studio to Finance and Operations.

This error is often linked to an expired or invalid SSL certificate in your environment. 

This also shows up as an expired SSL Certificate warning when you open your Finance and Operations environment from the browser.


Certificates are critical for securing communication channels, and an expired certificate can disrupt services and integrations.
In this blog, we’ll explore the cause of the error and provide steps to resolve it.

References

Configuration

In a new cloud hosted environment, the SSL Certificate stays valid for one year by default.
Post that, it expires at which point it is essential to renew the SSL Certificate.
For Cloud Hosted environments, it is really simple to do via the LCS.

Go to LCS and open the environment which has the expired SSL.
Click on Maintain and then "Rotate Secrets"


In the pop-up menu, select the change type as "Rotate SSL Certificates"


After that the environment will go into servicing and the status will reflect "Rotating Secrets"



This entire process should take less than 15 minutes.
The documentation suggests secrets rotation should show up in the enviroment history however in my attempt it didn't so I'm not sure if that's reliable or not or whether that is only for Tier 2 and above environments though that doesn't make much sense.

Anyways, once this is done we can see that the SSL error has been resolved.


Conclusion

SSL certificates are the backbone of secure communication in Dynamics 365 Finance and Operations environments.
An expired certificate can disrupt critical functionalities, but with proper certificate management, such issues can be avoided.
Regularly monitor your SSL certificate validity to ensure uninterrupted operations.

For more insights into Dynamics 365 troubleshooting, stay tuned for upcoming blogs!

Comments

Popular posts from this blog

Using Notifications in Business Central via AL

Actionable Error Messages in Business Central

Configure Gmail SMTP service in Business Central without "Allow Less Secure" setting