Your Entra ID SAML Signing Certificate Is Expiring

Entra ID sends you an email. It says the SAML signing certificate for some app is going to expire, and if you’re lucky it lands in your inbox and not your junk folder. If you’re unlucky it lands in the inbox of whoever set the app up three years ago, and that person left the company.

Either way, you’ve got an Entra ID SAML signing certificate on a timer. When it runs out, people can’t sign in to that app. Here’s how to renew it without an outage, how to find every other SAML app that’s about to do the same thing, and how to stop getting surprised by these.

Why these certificates expire on you

When you set up SAML single sign-on for an enterprise app in Entra ID (gallery or non-gallery), Microsoft generates a self-signed signing certificate for it. By default that certificate is good for three years.

Three years is the problem. It’s long enough that nobody remembers the setup, the vendor contact has changed, and the runbook (if there was one) is in somebody’s old OneDrive. Then it expires, and the only thing standing between you and a help desk flood is an email.

Microsoft does send warnings. Entra ID emails a notification 60, 30, and 7 days before the SAML certificate expires. But by default those warnings go only to the email address of the admin who added the application. You can add more, up to five addresses including that original one, and Microsoft suggests using a distribution list if you need more people than that. The emails come from azure-noreply@microsoft.com, and Microsoft’s own docs tell you to add that to your contacts so it doesn’t end up in spam.

There’s one more wrinkle worth knowing. Microsoft notes that if notification addresses were set through Graph or PowerShell, and the SAML settings haven’t been opened and verified in the admin center, the expiration emails might not be sent at all. So “we’d have gotten an email” isn’t a safe assumption.

How to renew an Entra ID SAML signing certificate without downtime

The trick is overlap. You create the new certificate while the old one is still valid, get it into the app, and then flip which one Entra ID signs with. You’ll need Cloud Application Administrator, Application Administrator, or Privileged Role Administrator.

Create the new certificate

In the Microsoft Entra admin center, go to Entra ID → Enterprise apps → All applications, open the app, and select Single sign-on. Find the SAML Certificates section and click the edit (pencil) icon. That opens the SAML Signing Certificate page, which shows each certificate’s status (Active or Inactive), its expiration date, and its thumbprint.

Click New Certificate. The new row defaults to an expiration exactly three years out, and you can pick any date between today and that three-year mark. You can’t change the date after you save, so decide now. Save it, and the new certificate shows up as Inactive.

Get it into the application

This is the part that varies by vendor. Pull up the app’s SAML configuration instructions from the Set up section on the same page and check what format the vendor wants: raw .cer, Base64, PEM, or the federation metadata XML. Download the new (still inactive) certificate in that format from the SAML Signing Certificate page.

Now it depends on what the app can handle:

  • The app accepts more than one signing certificate. Upload the new one alongside the old one whenever you want. Then come back to Entra ID and select Make certificate active on the new row. No maintenance window needed.
  • The app can only hold one certificate at a time. Schedule a short window. Make the new certificate active in Entra ID and upload it to the app back to back, before the old one expires.
  • The app pulls Entra’s federation metadata URL automatically. Lucky you. Microsoft recommends that SaaS vendors poll metadata at least every 24 hours and pick up new certificates as a secondary. Activate the new cert and confirm the app followed along.

Whichever case you’re in, sign in to the app as a test user afterward. Don’t trust that it worked until you’ve actually logged in.

Two gotchas that cause outages

First, some apps don’t validate the certificate’s expiration date at all. Microsoft points out that if the certificate matches on both sides, those apps keep working even after it expires. That sounds harmless until you find out the hard way that nothing broke, so nobody noticed, and the cert is now a year past due.

Second, and this is the one that bites people: if an app has an expired certificate and you create a new one, Entra ID starts signing with the new valid certificate right away, even though you never made it active. If the app hasn’t been given that new cert yet, sign-ins fail. Microsoft says outright that users might see an outage in that case. So if you’re cleaning up an already-expired cert on an app that doesn’t validate expiry, don’t click New Certificate until you’re in your maintenance window with the vendor’s upload page open.

Find every SAML app that’s about to expire

Renewing one app is fine. The real question is how many more are out there. Clicking through every enterprise app in the portal doesn’t scale, so let PowerShell do it.

Microsoft’s Entra PowerShell beta module exposes the token signing certificate’s end date on each SAML service principal. Install it once, sign in with read access to applications, and run the report:

# One-time install (Microsoft Entra PowerShell, beta)
Install-Module -Name Microsoft.Entra.Beta -Repository PSGallery -Scope CurrentUser

Connect-Entra -Scopes 'Application.Read.All'

$Days   = 90
$Cutoff = (Get-Date).AddDays($Days)

Get-EntraBetaServicePrincipal -All -Filter "PreferredSingleSignOnMode eq 'saml'" |
    Where-Object {
        $_.PreferredTokenSigningKeyEndDateTime -and
        [datetime]$_.PreferredTokenSigningKeyEndDateTime -le $Cutoff
    } |
    Sort-Object { [datetime]$_.PreferredTokenSigningKeyEndDateTime } |
    Select-Object DisplayName,
                  PreferredTokenSigningKeyEndDateTime,
                  NotificationEmailAddresses |
    Format-Table -AutoSize

The filter on PreferredSingleSignOnMode limits the results to apps set up for SAML SSO, and PreferredTokenSigningKeyEndDateTime is the expiration date of the certificate Entra ID is currently signing with. Anything already expired shows up at the top.

Pay attention to the NotificationEmailAddresses column. That’s who Microsoft is going to email about each app. If you see a name that doesn’t work there anymore, fix it now, while you’re looking at it. Drop the -le filter and you’ve got a full inventory of your SAML apps and who gets their warnings.

This is a beta module pointed at Microsoft Graph beta, so property names can shift. Run it in your tenant and sanity-check a couple of results against the portal before you build anything on top of it.

Make the next one boring

Once you’ve cleaned up, a few habits keep these from sneaking up on you again.

Use a shared mailbox or distribution list as a notification address on every SAML app, not one person. People leave. Distribution lists mostly don’t.

Write down the vendor-side steps the first time you do a renewal: where the upload page is, which format they want, and whether they support two certs. In three years you won’t remember, and the vendor’s admin UI will have moved.

Think about the expiration date you pick. The default is three years, but you can pick anything shorter. Some teams line up their SAML renewals on a schedule they’ll actually remember, so it becomes routine instead of an emergency. Just know that a shorter date means more renewals.

Count your SAML apps alongside everything else. SAML signing certs are certificates like any other, but they live in Entra ID, not on a server or in your CA, so the usual cert tracking misses them. I talked about how that happens in certificate discovery. If you want a reminder of what happens when a forgotten cert expires, these five outages make the case better than I can.

Where CertMS fits

The PowerShell report works, but it’s one more script to schedule, and it only covers Entra ID. Your public sites, internal CA certs, and server certs are all somewhere else.

CertMS has an Entra ID SAML SSO integration that automatically scans for SAML setups in your tenant and pulls those signing certificates into CertMS for monitoring and alerting. It sits next to everything else CertMS tracks: certs from your Windows CA, certs installed on your Windows and Linux servers, and the URLs you monitor. You can associate each SAML app with its certificate, so when one is coming due you know exactly which app is about to break.

Alerts don’t depend on one person’s inbox. CertMS can open a help desk ticket or call a webhook a set number of days before expiration. You can also attach your own documentation to the certificate, like those vendor upload steps, so whoever picks up the ticket has the runbook right there. CertMS only monitors and never sits in the middle of the certificate lifecycle, so it doesn’t change how Entra ID or your apps work.

If you’re still tracking these in a spreadsheet, here’s how manual tracking compares. And if you’d like to see your SAML certs next to the rest of your inventory, take a look at CertMS. Either way, run that PowerShell report this week. Better to find the expiring cert now than from the help desk queue.

References

Free 5-Day Email Course

Learn how to automate certificate tracking and avoid costly surprises - one actionable lesson each day