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 :
Finance | Project Operations, Human Resources, ...
Answered

SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.

(0) ShareShare
ReportReport
Posted on by 507

I am doing a certificate rotation process for D365FO(on-premise). I just completed generating the SQL Server certificate. Now the problem comes when deploying. The AXSFType is displaying this error: 

'System.RA' reported Warning for property 'ReplicaOpenStatus'.
Replica had multiple failures during open on AOS-02. API call: IStatelessServiceInstance.Open(); Error = Microsoft.Dynamics.AXService.Database.DBSyncInvokeException (-2146233088)
DBSync failed. Please check the logs.
at Microsoft.Dynamics.AXService.Database.States.DBSyncFailedState.ApplyThenTransition()
at Microsoft.Dynamics.AXService.AXService.Synchronize(String codePackageVersion, ILogger logger)
at Microsoft.Dynamics.AXService.AXService.<>c__DisplayClass9_0.<.ctor>b__0()

The AOS event logs are showing the below events

02/03/2021 16:34:38: Caught unexpected exception: System.AggregateException: Unable to connect to SQL server. ---> System.Data.SqlClient.SqlException: A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.) ---> System.ComponentModel.Win32Exception: The certificate chain was issued by an authority that is not trusted --- End of inner exception stack trace --- at System.Data.SqlClient.SqlInternalConnectionTds..ctor(...)

Anyone with the idea how to solve the "SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted."?

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    300,917 Super User 2025 Season 2 on at

    Hi Huggins,

    Have you performed all steps like outlined in the documentation?  Certificate rotation - Finance & Operations | Dynamics 365 | Microsoft Docs

    Also ensure you are not using a self-signed certificate on a production environment.

  • Suggested answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    "To resolve this error, add the public key SQL Server certificate to all the Service Fabric nodes."

    docs.microsoft.com/.../troubleshoot-on-prem

  • WillWU Profile Picture
    22,361 on at

    Hi Huggins Mafigu,

    Please read this document ,"gateway fails to deploy". Your error message is documented under this topic.

    Reason: The pointers to the performance counter that the gateway needs may be corrupt.

    Resolution: Run lodctr /R in a Command Prompt window that you open as administrator in all AOS nodes where the gateway is unhealthy. If you receive an error message that states that the performance counters can't be rebuilt, try to run the command again.

    Refer to:docs.microsoft.com/.../troubleshoot-on-prem

  • Verified answer
    Huggins Mafigu Profile Picture
    507 on at

    Hie guys,

    "Adding the public key SQL Server certificate to all the Service Fabric nodes"  only did not solve my problem. I added the .cert to the Trusted Root Certification Authorities of all the nodes i.e. AOS nodes, OR nodes, MR and SSRS nodes. And the error cleared away.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans