用于 Dynamics 365 for Customer Engagement Onpremise 与 Exchange Online 的 S2S 身份验证的证书已过期

Certificate used for S2S authentication of Dynamics 365 for Customer Engagement Onpremise with Exchange Online has expired

我有以下错误:

Certificate used for S2S authentication of Dynamics 365 for Customer Engagement Onpremise with Exchange Online has expired

以前有人遇到过这个错误吗?你能给我更多的说明吗?

证书只在一段时间内有效,我猜你的证书已经过期了。

"Exchange Online Security Certificate Expiration" error message displayed in Dynamics 365 On-premises or Dynamics 365 for Outlook.

Applies to Microsoft Dynamics 365 Server configured with a connection to Exchange Online or SharePoint Online. The message states "Please update your certificate or Exchange Online integration will stop functioning in [number] days."

To resolve this issue, update the x509 digital certificate issued by a trusted certificate authority used to authenticate between Dynamics 365 (on-premises) and Exchange Online or SharePoint Online.

看来您需要获得有效证书并重复此处描述的设置过程Connect Dynamics 365 for Customer Engagement (on-premises) to Exchange Online

Verify prerequisites

...

  • An x509 digital certificate issued by a trusted certificate authority that will be used to authenticate between Dynamics 365 (on-premises) and Exchange Online. If you are evaluating server-based authentication, you can use a self-signed certificate.

特别是步骤“5.设置证书”在这里Configure server-based authentication

$STSCertificate = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 -ArgumentList c:\Personalcertfile.pfx, personal_certfile_password
$PFXCertificateBin = $STSCertificate.GetRawCertData()
$Certificate = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2
$Certificate.Import(“c:\Personalcertfile.cer”)
$CERCertificateBin = $Certificate.GetRawCertData()
$CredentialValue = [System.Convert]::ToBase64String($CERCertificateBin)