Exchange Auth Certificate Expired: Restoring OWA and ECP

By Ahmet Tolga KAYA 9 min read
Exchange Auth Certificate Expired: Restoring OWA and ECP

Quick answer: When the Exchange Auth Certificate has expired, OWA and ECP loop or freeze at sign-in while mail flow keeps working. Renew it with the MonitorExchangeAuthCertificate.ps1 script, or manually with Set-AuthConfig -PublishCertificate, then restart the service host and recycle the app pools.

StepWhat to do
Step 1Check Whether the Exchange Auth Certificate Expired
Step 2Renew It With MonitorExchangeAuthCertificate.ps1 (My Preferred Fix)
Step 3The Manual Fix With Set-AuthConfig -PublishCertificate
Step 4Restart the Service Host and Recycle the App Pools
Step 5Verify the Fix and Re-Run the Hybrid Wizard

Exchange Auth Certificate expired is not an error message you will ever see on screen, and that is exactly why it wastes so much time. What you see instead is Outlook on the web (OWA) or the Exchange Admin Center (ECP) spinning, freezing, or bouncing you back to the sign-in page until the browser gives up with a “too many redirects” message. Mail flow keeps working, so the first instinct is to blame IIS, the browser or the last security update. I have learned to check one thing first: the self-signed Microsoft Exchange Server Auth Certificate. In this guide I show how to confirm an Exchange Auth Certificate expired condition in under a minute, how to replace it with the Microsoft script or by hand, and how to make sure it never surprises you again.

What Breaks When the Exchange Auth Certificate Expired

When you install the first Exchange server, Setup creates a self-signed certificate with the friendly name Microsoft Exchange Server Auth Certificate and stores it in the Auth Configuration. According to Microsoft Learn, it is used for server-to-server OAuth (hybrid, SharePoint, Skype for Business, Teams) and by several Exchange security features, and a servicelet inside the MSExchangeServiceHost process replicates it to every Exchange server in the organization.

Because the certificate is created once and then forgotten, its expiry date tends to arrive years later, long after the person who installed Exchange has moved on. Once the Exchange Auth Certificate expired date passes, or the certificate is missing on a server, Microsoft documents these symptoms:

  • OWA or ECP sign-in hangs, or the browser reports that the redirect limit was reached (the classic OWA redirect loop after login).
  • Event ID 1003 from source MSExchange Front End HTTPS Proxy with a System.NullReferenceException in FbaModule.ParseCadataCookies.
  • Exchange Management Shell behaves oddly, and hybrid features such as free/busy with Exchange Online stop working.
  • Applies to Exchange Server SE, Exchange Server 2019 and Exchange Server 2016.
Exchange Auth Certificate expired symptom: Event 1003 from MSExchange Front End HTTPS Proxy and Get-AuthConfig showing a NotAfter date in the past

Read more: Exchange OWA Not Working After October 2026 Updates? Fix It Without Uninstalling covers a different cause of the same “OWA is down” call, so rule that one out too if your servers are fully patched.

Step 1: Check Whether the Exchange Auth Certificate Expired

Open the Exchange Management Shell as administrator on a Mailbox server and run the query Microsoft gives in its maintenance article. It reads the thumbprint from the Auth Configuration and looks the certificate up on the local server:

(Get-AuthConfig).CurrentCertificateThumbprint | Get-ExchangeCertificate | Format-List Subject, Thumbprint, NotAfter, NotBeforeCode language: PHP (php)

If NotAfter is in the past, the Exchange Auth Certificate expired and you have found the problem. If the command fails with “The certificate with thumbprint … was not found”, the current Auth Certificate is missing on that server, which breaks OWA in exactly the same way. In larger organizations I always check every Mailbox server, because the certificate can be present on one and missing on another:

$thumb = (Get-AuthConfig).CurrentCertificateThumbprint
Get-ExchangeServer | Where-Object { $_.ServerRole -match 'Mailbox' } | ForEach-Object {
    $cert = Get-ExchangeCertificate -Server $_.Name -Thumbprint $thumb -ErrorAction SilentlyContinue
    [pscustomobject]@{ Server = $_.Name; Found = [bool]$cert; NotAfter = $cert.NotAfter }
}Code language: PHP (php)

While you are here, check whether a next certificate is already staged. If it is, somebody started a rotation that never finished:

(Get-AuthConfig).NextCertificateThumbprint | Get-ExchangeCertificate | Format-List Subject, Thumbprint, NotAfter, NotBeforeCode language: PHP (php)

A quick tip: the Exchange HealthChecker Auth Certificate check flags an expired or missing Auth Certificate in its HTML report, so if you already run HealthChecker on a schedule, the warning may have been sitting in your inbox for weeks.

Step 2: Renew It With MonitorExchangeAuthCertificate.ps1 (My Preferred Fix)

Microsoft publishes MonitorExchangeAuthCertificate.ps1 in its CSS-Exchange project, and the documentation says it can renew an already expired Auth Certificate or repair an Auth Configuration where the current certificate is not available on every Mailbox server. This is the route I recommend whenever the Exchange Auth Certificate expired and OWA is down, because it handles the edge cases for you. The requirements are strict, though: you need to be a member of Organization Management, and you must run it from an elevated Exchange Management Shell on a server with the Mailbox role. It cannot run on a management-tools-only machine.

Download the latest release from the script page, then start with a dry run. Without parameters the script only validates and tells you what it would do:

.\MonitorExchangeAuthCertificate.ps1Code language: CSS (css)

When the output confirms that the Auth Certificate needs to be replaced, run it in renewal mode:

.\MonitorExchangeAuthCertificate.ps1 -ValidateAndRenewAuthCertificate $trueCode language: JavaScript (javascript)

Answer the prompts carefully. Microsoft’s guidance is to answer Y when the script offers to recycle the web app pools, and N when it asks whether to replace the internal transport certificate with the new Auth Certificate. If you run Exchange hybrid, the script stops when it detects the hybrid configuration; add -IgnoreHybridConfig $true only when you are ready to re-run the Hybrid Configuration Wizard afterwards. Every run is logged under <ExchangeInstallPath>\Logging\AuthCertificateMonitoring, which is the first place I look if something does not behave as expected.

Step 3: The Manual Fix With Set-AuthConfig -PublishCertificate

If you cannot download scripts onto the server, you can still recover from the Exchange Auth Certificate expired state by hand. These are the steps from Microsoft’s own archived Exchange guidance, with the certificate command taken from the current OAuth certificate maintenance article. First, create a new self-signed Auth Certificate:

$newAuthCertificate = New-ExchangeCertificate -KeySize 2048 -PrivateKeyExportable $true -SubjectName "cn=Microsoft Exchange Server Auth Certificate" -FriendlyName "Microsoft Exchange Server Auth Certificate" -DomainName @()Code language: PHP (php)

When Exchange asks whether to overwrite the existing default SMTP certificate, type N. Then stage the new certificate with an effective date of now, publish it immediately and clear the old one:

Set-AuthConfig -NewCertificateThumbprint $newAuthCertificate.Thumbprint -NewCertificateEffectiveDate (Get-Date)
Set-AuthConfig -PublishCertificate
Set-AuthConfig -ClearPreviousCertificateCode language: JavaScript (javascript)

The Set-AuthConfig reference explains that Set-AuthConfig -PublishCertificate immediately rolls the certificate configured as the next certificate over to become the current one, which is why the staging command has to succeed first. If publishing fails with a message about the next certificate, go back and check that the thumbprint was actually staged. If you need to confirm, pause before each change with the -Confirm switch.

Exchange Auth Certificate expired fix flowchart: confirm with Get-AuthConfig, renew with MonitorExchangeAuthCertificate.ps1, publish with Set-AuthConfig, restart Service Host and app pools

Step 4: Restart the Service Host and Recycle the App Pools

The OWA and ECP application pools cache a reference to the Auth Certificate, so the browser loop often continues after the Exchange Auth Certificate expired problem is technically solved, until you refresh them. Restart the Microsoft Exchange Service Host service and recycle both pools from an elevated PowerShell window on each Mailbox server:

Restart-Service MSExchangeServiceHost
Restart-WebAppPool MSExchangeOWAAppPool
Restart-WebAppPool MSExchangeECPAppPool

Running iisreset works too, but it drops every client connection at once, so I prefer recycling only the two pools. Microsoft also notes that in some environments it can take up to an hour for the new certificate to be published to every server, so do not panic if one server is still looping five minutes later. If a server in another Active Directory site never receives the certificate, export it with Export-ExchangeCertificate and import it there with Import-ExchangeCertificate.

Read more: if a service refuses to come back after these restarts, Exchange Services Not Starting After an SU? The Proven Fix walks through the usual reasons.

Step 5: Verify the Fix and Re-Run the Hybrid Wizard

Run the Step 1 commands again. The current thumbprint should now point to the new certificate, NotAfter should be years in the future, and the per-server loop should report Found = True everywhere. Then sign in to OWA and ECP in a private browser window so old cookies cannot confuse the test. If you use HealthChecker, run it once more: the Exchange Auth Certificate expired warning should be gone from the report.

Exchange Auth Certificate expired and fixed: Exchange Management Shell shows the new Auth Certificate thumbprint with a future NotAfter date

If you run a hybrid deployment, this step is not optional. Microsoft strongly recommends re-running the Hybrid Configuration Wizard after the active Auth Certificate has been replaced, otherwise free/busy, mailbox moves and other OAuth-based features can keep failing even though OWA works again.

How I Stop the Exchange Auth Certificate Expired Problem Coming Back

Fixing an Exchange Auth Certificate expired outage is stressful; rotating the certificate before it expires is boring, and boring is what you want. Microsoft’s recommended rotation is to stage a new certificate with an effective date at least 48 hours away, so every server receives it before it becomes active:

Set-AuthConfig -NewCertificateThumbprint $newAuthCertificate.Thumbprint -NewCertificateEffectiveDate (Get-Date).AddHours(49)Code language: JavaScript (javascript)

The AuthAdmin servicelet checks every 12 hours and publishes the new certificate once the effective date is reached, then logs Event ID 2014 from source MSExchange AuthAdmin in the Application log. If your Exchange servers sit in a child domain while the system mailbox lives in the root domain, Microsoft says you must first run Set-OrganizationConfig -EnableAuthAdminReadSession:$true, or the servicelet cannot start. Better still, let the script do the work: MonitorExchangeAuthCertificate.ps1 -ConfigureScriptToRunViaScheduledTask registers a scheduled task that checks and renews the certificate automatically. Read the script documentation before you use it, because it creates a dedicated account and role group.

My personal rule after the November 2026 round of updates: whenever I install a new Exchange Cumulative Update or Security Update, I also run the Step 1 query. It takes ten seconds and turns the Exchange OAuth certificate November 2026 surprise into a calendar entry. Read more: CVE-2026-96940: How to Patch the Exchange Server Flaw Safely.

Frequently Asked Questions

Does an Exchange Auth Certificate expired problem stop mail flow?

Usually not. Mail flow normally keeps working, which is why it is often missed. The visible damage is OWA and ECP sign-in failing with a redirect loop, plus OAuth-based features such as hybrid free/busy.

Can I renew the Auth Certificate with a certificate from a public CA?

Microsoft’s documented procedure uses a self-signed certificate created with New-ExchangeCertificate and the subject cn=Microsoft Exchange Server Auth Certificate. The Auth Certificate is separate from the public certificate you assign to IIS and SMTP, so leave that one as it is.

Do I need to run the Hybrid Configuration Wizard afterwards?

Yes, if you run Exchange hybrid. Microsoft strongly recommends re-running the Hybrid Configuration Wizard after the active Auth Certificate has been replaced.

Why does OWA still loop after I ran Set-AuthConfig -PublishCertificate?

Even after the Exchange Auth Certificate expired issue is fixed in the Auth Configuration, the OWA and ECP app pools cache the old certificate reference. Restart the MSExchangeServiceHost service, recycle MSExchangeOWAAppPool and MSExchangeECPAppPool on each Mailbox server, and allow up to an hour for publishing in larger environments.

Where can I see what MonitorExchangeAuthCertificate.ps1 changed?

Each run writes a log file to the Logging\AuthCertificateMonitoring folder under the Exchange installation path. If that path does not exist, the log is written to the same folder under the TEMP directory.

References

Microsoft Learn: Can’t sign in to Outlook on the web or the EAC if the Exchange Server OAuth certificate is expired

Microsoft Learn: Maintain (rotate) the Exchange Server Auth Certificate

Microsoft CSS-Exchange: MonitorExchangeAuthCertificate.ps1

Microsoft CSS-Exchange: HealthChecker Auth Certificate Check

Microsoft Learn: Set-AuthConfig cmdlet reference

Microsoft Learn archive: OWA/ECP breaks if the Microsoft Exchange Server Auth Certificate is expired

Ahmet Tolga KAYA

Systems Engineer and Technical Writer focused on Windows, Microsoft technologies, infrastructure, cybersecurity, automation, and platform reliability.