Rexxer

Some tips for me and other

Exchange 2019 + Error 500 OAuth certificate

If you delete expired certificates be ready for getting error 500 OAuth …. because this self-signed certificate was a critical point. If that happen you have to re-create a certificate or assign an existed one. The certificate will be propagated to all the Exchange servers.

# Creating a certificate
New-ExchangeCertificate -KeySize 2048 -PrivateKeyExportable $true -SubjectName "cn=Microsoft Exchange Server Auth Certificate" -FriendlyName "Microsoft Exchange Server Auth Certificate" -DomainName @()

#Get all the certificates to check
Get-ExchangeCertificate | fl Issuer,CertificateDomains, Thumbprint

#Set (choose the new one or the existed one)
Set-AuthConfig -NewCertificateThumbprint <Place the Thumbprint here> -NewCertificateEffectiveDate (Get-Date)
Set-AuthConfig -PublishCertificate
Set-AuthConfig -ClearPreviousCertificate

#Restart the service
Restart-Service MSExchangeServiceHost

#Restart IIS
iisreset

Comments are currently closed.