When you try to sign in to Outlook Web Access (OWA) or the Exchange Control Panel in Microsoft Exchange Server, the web browser freezes or reports that the redirect limit was reached. Additionally, Event 1003 is logged in the event viewer. For example, the following entry is logged:
Event ID: 1003
Source: MSExchange Front End HTTPS Proxy
[Owa] An internal server error occurred. The unhandled exception was: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Exchange.HttpProxy.FbaModule.ParseCadataCookies(HttpApplication httpApplication)
To create and deploy a new OAuth certificate to the server that's running Exchange Server, follow these steps:
- Create a new OAuth certificate by running the following command:
New-ExchangeCertificate -KeySize 2048 -PrivateKeyExportable $true -SubjectName "cn=Microsoft Exchange Server Auth Certificate" -FriendlyName "Microsoft Exchange Server Auth Certificate" -DomainName "contoso.com"
Note Change the value of the DomainName parameter in the example (contoso.com) to the SMTP domain that's used in your organization.
- Set the new certificate for server authentication. To do this, run the following commands:
Set-AuthConfig -NewCertificateThumbprint <ThumbprintFromStep1> -NewCertificateEffectiveDate (Get-Date)
- Restart the Microsoft Exchange Service Host Service.
- Either run the IISReset command to restart IIS or run the following commands (in elevated mode) to recycle the OWA and ECP application pools:
Restart-WebAppPool MSExchangeOWAAppPoolNote In some environments, it may take an hour for the OAuth certificate to be published. If you have a hybrid setup, you have to run the Hybrid Configuration Wizard again to update the changes to Azure Active Directory (Azure AD).
To check the expiration date of your certificate, follow these steps:
- Open the Microsoft Management Console. To do this, open the Run box (Windows logo key+R), enter MMC, and then press Enter.
Note If you are prompted for an administrator password or for confirmation, type the password or select Yes.
- Select File > Add/Remove Snap-in > Select Certificates > Add > Computer Account, and then select Finish to close the window.
- Find the Microsoft Exchange Server Auth Certificate entry in the Personal > Certificate folder, and verify the expiration date.