Hi there.

It's that time again when we need to update our SSL Certs on our On-Prem Server. We managed to get IIS/ADFS updated OK.  Now challenged getting the Hybrid Connector updated.

We are using details from this article:

https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2016/administering-dynamics-365/mt703269(v=crm.8)

After running this command:

$CertificateScriptWithCommand = ".\CertificateReconfiguration.ps1 -certificateFile C:\CRM\WildCardCertificate.pfx -password XX -updateCrm -certificateType S2STokenIssuer -serviceAccount XX -storeFindType FindBySubjectDistinguishedName"
Invoke-Expression -command $CertificateScriptWithCommand

We get the following error:

Set-CrmCertificate : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
At C:\Program Files\Microsoft Dynamics CRM\tools\CertificateReconfiguration.ps1:198 char:3
+         Set-CrmCertificate -CertificateType $certificateType -DataFil ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Crm.P...rtificateCmdlet:SetCrmCertificateCmdlet) [Set-CrmCer
   tificate], WebException
    + FullyQualifiedErrorId : CRM Deployment Cmdlet Error,Microsoft.Crm.PowerShell.SetCrmCertificateCmdlet

[11/04/2021 19:36:15]  The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
[11/04/2021 19:36:15]  Fail to configure Microsoft Dynamics CRM to use the specifed certificate.

Googling doesn't give me too many results - we're running on a 2016 Server box.

Anyone seen this before or have any recommendations?

Thanks