renewing Microsoft Exchange Server Auth Certificate in hybrid Exchange Serverhy 2019

Ibrahim AlHusari 191 Reputation points
2024-03-06T10:50:28.88+00:00

Dears,

I Have hybrid Exchange Server 2019 in my environment, last week my Microsoft Exchange Server Auth Certificate has expired and ECP/OWA stopped from working, so I renewed the certificate by using these commands:

[PS] C:>New-ExchangeCertificate -KeySize 2048 -PrivateKeyExportable $true -SubjectName "cn=Microsoft Exchange Server Auth Certificate" -FriendlyName "Microsoft Exchange Server Auth Certificate" -DomainName @()

[PS] C:>Set-AuthConfig -NewCertificateThumbprint "000000000000000000000000" -NewCertificateEffectiveDate (Get-Date)

[PS] C:>Set-AuthConfig -PublishCertificate

[PS] C:>Set-AuthConfig -ClearPreviousCertificate

[PS] C:>Restart-Service "MSExchangeServiceHost"

 

After one day from that OWA/ECP back to work again but when I am comparing the old Auth Certificate with new one, I Can see some differences as shown below (Namespaces) are different on both Certificates. is that problem in future?

 

Do I have to re-run HW again to update (Azure AD) or I can just update them manually?

 

 

Certificate:

                                FriendlyName: Microsoft Exchange Server Auth Certificate

                                Thumbprint: 0000000000000000000

                                Lifetime in days: 1819

                                Certificate has expired: False

                                Certificate status: Valid

                                Key size: 2048

                                Signature Algorithm: sha256RSA

                                Signature Hash Algorithm: sha256

                                Bound to services: SMTP

                                Internal Transport Certificate: False

                                Current Auth Certificate: True

                                Next Auth Certificate: False

                                SAN Certificate: False

                                Namespaces:

                                                Microsoft Exchange Server Auth Certificate

               

               

                Certificate:

                                FriendlyName: Microsoft Exchange Server Auth Certificate

                                Thumbprint: 0000000000000000000000000000000

                                Lifetime in days: -8

                                Certificate has expired: True

                                Certificate status: Invalid

                                Key size: 2048

                                Signature Algorithm: sha256RSA

                                Signature Hash Algorithm: sha256

                                Bound to services: SMTP

                                Internal Transport Certificate: False

                                Current Auth Certificate: False

                                Next Auth Certificate: False

                                SAN Certificate: False

                                Namespaces:

                                                ACS

thank you.

Exchange | Exchange Server | Other
Exchange | Exchange Server | Other

A robust email, calendaring, and collaboration platform developed by Microsoft, designed for enterprise-level communication and data management.Miscellaneous topics that do not fit into specific categories.

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management

The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.

Exchange | Hybrid management
Exchange | Hybrid management

The administration of a hybrid deployment that connects on-premises Exchange Server with Exchange Online, enabling seamless integration and centralized control.


Answer accepted by question author
Andy David - MVP 160.3K Reputation points MVP Volunteer Moderator
2024-03-06T11:28:01.18+00:00

You can update the Cert info in Azure manually if you want, but I would recommend simply running the Hybrid Wizard again to do that.

https://learn.microsoft.com/en-us/exchange/plan-and-deploy/integration-with-sharepoint-and-skype/maintain-oauth-certificate?view=exchserver-2019#frequently-asked-questions

As for the validity of the cert itself, it should be fine but verify with the HealthChecker script

https://microsoft.github.io/CSS-Exchange/Diagnostics/HealthChecker/

Was this answer helpful?

1 person found this answer helpful.

1 additional answer

Sort by: Newest
  1. Ceyhun KIRMIZITAS 0 Reputation points Microsoft External Staff
    2026-09-21T21:07:38.78+00:00

    The namespace difference is not a problem.

    The current Microsoft procedure creates the Exchange Auth Certificate with -DomainName @(), so the new certificate does not need to contain the same namespaces as the old certificate. SAN Certificate: False is also expected.

    The Auth Certificate is different from the normal IIS or SMTP certificate. Exchange uses it for OAuth and server-to-server authentication through the AuthConfig configuration.

    Microsoft reference: https://learn.microsoft.com/en-us/exchange/plan-and-deploy/integration-with-sharepoint-and-skype/maintain-oauth-certificate

    For a hybrid environment, Microsoft also strongly recommends running the Hybrid Configuration Wizard again after the active Auth Certificate is replaced.

    I documented the normal rotation, expired or missing certificate recovery, replication checks and hybrid post-checks here: https://ceyhunkirmizitas.net/exchange-server-auth-certificate-renewal-recovery-timezone/

    After the change, I would also verify the CurrentCertificateThumbprint on the Exchange servers and check the AuthAdmin logs. Event ID 2014 confirms that the new certificate became the current signing certificate.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.