A SAML signing certificate rollover replaces the key your identity provider uses to sign assertions, and it only stays invisible to users when the new certificate reaches every service provider before the old one stops being trusted. Expired or mismatched signing certificates are one of the most common causes of single sign-on outages, and the failure is usually organisational rather than technical: the expiry notice went to someone who left, the vendor's admin portal needed a ticket, or nobody knew which applications shared the certificate. This guide covers the rollover pattern across identity providers and service providers, the provider-specific steps for Google Workspace, Microsoft Entra ID and Okta, and the controls that turn a recurring fire drill into a scheduled change.
For the wider SAML threat model, see the SAML Security Guide. For a step-by-step walkthrough of the Entra ID admin centre alone, see How to rotate a SAML signing certificate in Entra ID without breaking SSO. This page is the cross-provider view: inventory, overlap, cutover and verification, whichever identity provider you run.
Key takeaways
- The signing certificate is a trust anchor for every application that relies on it. Treat its rollover as a change to a non-human identity credential, with an owner, an inventory and a schedule.
- Overlap is the whole game. Create the new certificate well before expiry, get it onto each service provider, then switch signing, then remove the old certificate.
- Default lifetimes differ by provider: Microsoft documents three years for Entra ID self-signed SAML certificates and Google documents five years for Workspace SAML certificates. Long lifetimes mean the team that set it up has often moved on by the time it expires.
- Service providers that ingest federation metadata can roll over with no downtime; providers that hold a single pasted certificate need a maintenance window and a named contact.
- Verify every application after cutover with a real sign-in, and keep the old certificate available (inactive, not deleted) until verification is complete.
Why SAML certificate expiry breaks SSO
In a SAML flow the identity provider (IdP) signs the response or assertion with a private key, and the service provider (SP) validates that signature with the public certificate it was given when the trust was configured. The SP does not normally fetch the certificate at sign-in time. It holds a copy. So two separate events can break sign-in:
- The IdP switches to a new key before the SP has the new certificate. Signatures no longer validate and the SP rejects every assertion. This is the most common self-inflicted outage.
- The certificate expires and either side enforces the validity period. Some SPs check the certificate's dates and refuse an expired one even though the key still matches. Google's documentation is blunt: if a certificate expires before you rotate it, users will not be able to use SSO to sign in to the applications that rely on it.
Many SPs do not check expiry at all, which creates a false sense of safety: the application keeps working past the expiry date until the IdP rotates, and then fails without warning. Microsoft also documents a subtle Entra ID behaviour: if an application holds an expired certificate and you create a new one, the new certificate is used for signing even while it shows as inactive. Planning the order of operations matters as much as the date.
There is a second direction to consider. Where the SP signs authentication requests or encrypts assertions, the IdP holds the SP's certificate, and that certificate expires on the SP's schedule. Inbound federation, where your IdP trusts an external IdP, works the same way in reverse. A complete inventory covers all three.
Build the certificate inventory first
You cannot roll over what you cannot see. Before any expiry date, build a register with one row per trust relationship, not one row per certificate, because a single IdP certificate is often shared by many applications.
| Field | Why it matters |
|---|---|
| Application and SP entity ID | Identifies the trust, not just the app name |
| Signing certificate thumbprint and expiry | Shared certificates show up as repeated thumbprints |
| How the SP receives the certificate | Metadata URL, uploaded metadata file, pasted PEM, or vendor ticket |
| Single or dual certificate support | Decides whether you need a maintenance window |
| Business owner and SP admin contact | The person who can actually change the SP side |
| SP-side certificates (request signing, encryption) | These expire on the SP's schedule, not yours |
| Break-glass sign-in route | Local admin or password fallback if SSO fails |
The Certificate Inventory Register Template can hold these fields alongside your TLS and code signing certificates. Pull the IdP side from the admin console or API of each provider and reconcile it against the application owners' own records, because applications configured years ago are frequently missing an owner.
Choose the rollover pattern
Every rollover follows one of three patterns, and the SP's capability decides which.
Metadata-driven rollover (zero downtime)
The SP polls the IdP's federation metadata, notices a new certificate and adds it as a secondary trust. When the IdP switches signing, the SP already trusts the new key. Microsoft's guidance for software vendors recommends exactly this: poll a per-tenant, per-application metadata URL at least every 24 hours, add newly discovered certificates as secondary while inactive, and promote them after the customer activates them. Microsoft also notes that manual rollover will become impractical as industry standards shorten certificate lifetimes.
Dual-certificate manual rollover (low risk)
The SP cannot poll metadata but can hold two trusted certificates. You upload the new certificate as a second trust, switch signing at the IdP, confirm sign-in, then remove the old certificate from the SP. There is no outage window if the SP is updated first.
Single-certificate cutover (needs a window)
The SP holds exactly one certificate. The moment you change it on one side, the other side must follow. Microsoft's guidance is to pick a maintenance window for these applications. Schedule both changes together, have the SP administrator on the call, and keep the old certificate ready to reactivate if the SP change fails.
Ask SaaS vendors which pattern they support before you need it. If the answer is a support ticket with a three-day turnaround, the rollover plan has to start weeks earlier.
Provider steps: Google Workspace, Microsoft Entra ID and Okta
The providers below are listed alphabetically. Each section describes that provider's own documented process; settings change, so confirm against the linked documentation before a production rollover.
Google Workspace
Google's SAML certificate maintenance documentation states that Workspace X.509 certificates have a five-year lifetime. An account starts with one default certificate and can hold up to two at a time. The documented rollover is:
- A super administrator adds a second certificate under Security, Authentication, SSO with SAML applications, using Add another certificate. The newest certificate becomes the default for new SAML apps.
- Move a test app to the new certificate first, so other apps keep working on the old one.
- Assign the new certificate to each SAML app in the app's Service provider details.
- Update the certificate in each app's SSO settings on the service provider side. Google warns that SSO fails if this step is skipped.
- Delete the old certificate once every app has moved.
Google notes that a replaced certificate can take up to 24 hours to become available to SAML apps, so do not plan a same-hour cutover. If an installed app still uses a deleted certificate, the console lists the affected apps and SSO stays unavailable until a new certificate is assigned. Creation, deletion and assignment changes are recorded in the Admin audit log.
Microsoft Entra ID
Microsoft's certificate management tutorial for federated SSO documents that Entra ID generates a self-signed SAML certificate valid for three years, and that expiry cannot be changed after saving: a different date means a new certificate. The documented process is:
- In the enterprise application's Single sign-on page, edit SAML Certificates and select New Certificate, choosing an expiry that overlaps the current one. The new certificate is saved as Inactive.
- Download it in the format the SP needs (raw, Base64, PEM or, for some gallery apps, federation metadata XML) and upload it to the SP.
- Select Make certificate active on the new row. The previous certificate becomes Inactive.
- Sign in to the application to confirm it works.
If the SP rolls over automatically from metadata, Microsoft says you can activate the new certificate and skip the separate upload. Entra ID sends expiry notifications 60, 30 and 7 days before expiry, by default only to the admin who added the application. You can add up to five addresses in total, and Microsoft recommends a distribution list for more. Notifications come from [email protected], so allow that sender. If notification addresses were set through Microsoft Graph or PowerShell, Microsoft advises verifying them in the admin centre, otherwise notifications might not be sent. The NHI Mgmt Group Entra ID rotation walkthrough covers the console steps and rollback in more detail.
Okta
In Okta, signing certificates for SAML app integrations are managed on the app's Sign On tab. Okta's signing certificate documentation describes generating a new certificate with Generate new certificate and activating it from the Actions menu. An active certificate applies only to that app integration, while inactive certificates are scoped to the whole org, and Okta recommends keeping the app-only certificate active.
For organisations that need a CA-signed certificate or want to script the change, Okta's developer guide on signing your own SAML certificate documents a CSR flow through the Apps API for outbound SAML and the Identity Providers API for inbound SAML:
- Generate a CSR with
POST /api/v1/apps/{appId}/credentials/csrs/(Okta generates it in Base64-encoded DER). - Have your CA sign it, then publish the signed certificate with
POST /api/v1/apps/{appId}/credentials/csrs/{csrId}/lifecycle/publish, which returns the key ID. - Update the app with
PUT /api/v1/apps/{appId}, settingcredentials.signing.kidto the new key ID. - Upload the new certificate to the SP.
Okta's caution is the key point for this guide: after you update the key credential, users cannot access the SAML app until the new certificate is uploaded to the SP. In other words, get the certificate onto the SP before step 3 wherever the SP supports two certificates. Okta also states that sharing certificates across apps is not recommended, that the clone API exists for legacy use cases, and that the Identity Provider update does not support partial updates, so the full IdP object must be sent. Treat the API token used for this as a privileged non-human credential: see How to audit Okta API tokens and service apps.
The service provider side
The SP half of the rollover is where most outages start, because it sits with a different team or a different company.
- Prefer metadata URLs over pasted certificates. If the SP can consume your IdP metadata URL, configure it, and confirm how often it refreshes.
- Confirm the SP has the new certificate before switching signing. Ask for a screenshot or check the SP's metadata endpoint if it publishes the trusted IdP certificate.
- Track SP-owned certificates. If the SP signs AuthnRequests or you encrypt assertions to the SP, those certificates are configured in your IdP and expire on the SP's schedule. Ask the vendor how far in advance they publish new ones.
- Check fingerprint pinning. Some SPs pin a SHA-1 or SHA-256 fingerprint rather than the certificate. A rollover means updating the fingerprint, and a typo fails silently until sign-in.
- Keep a non-SSO admin route. If the cutover fails, someone needs to sign in to the SP to fix it. Confirm the break-glass account works before the change, and keep it tightly controlled.
When an SP rejects a response after rollover, the SAML SSO Errors Troubleshooting Guide covers signature validation and certificate mismatch errors.
Run the rollover as a change
A repeatable runbook removes most of the risk. A practical sequence, which is an NHI Mgmt Group recommendation rather than any provider's requirement:
- 90 days out: confirm the inventory, owners and SP pattern for every application on the expiring certificate. Contact vendors whose change needs a ticket.
- 60 days out: create the new certificate at the IdP with an overlapping validity period. Publish it to metadata-driven SPs and upload it to dual-certificate SPs.
- 30 days out: switch signing for a pilot application and verify with a real sign-in. Then switch the remaining metadata and dual-certificate applications in batches.
- Scheduled windows: cut over single-certificate SPs with the SP administrator present.
- After cutover: keep the old certificate inactive until every application is verified, then remove it from the IdP and from every SP that held both.
The Certificate Renewal Runbook Template can be adapted for this sequence. Record each change in your change system, because an unexplained new signing certificate is also what an attacker's federation tampering looks like.
Security angle: signing keys as high-value credentials
A SAML signing key lets its holder mint assertions for any user of any application that trusts it. MITRE ATT&CK tracks this as T1606.002 Forge Web Credentials: SAML Tokens, and the wider pattern of tampering with federation trust is covered in the Golden SAML and Federation Trust Abuse Defence Guide. Rollover hygiene and security reinforce each other:
- Use provider-managed keys where possible so the private key never leaves the IdP. If you import CA-signed certificates, protect the key material during generation and transfer.
- Avoid sharing one certificate across many applications. Okta explicitly advises against sharing; a per-application certificate limits the blast radius of a compromise and makes rollovers smaller.
- Alert on certificate and federation changes in the IdP audit log, and reconcile each alert against a change record.
- Rotate early on suspicion. Google notes that a certificate should be rotated when it is compromised as well as when it nears expiry. Keep the runbook warm so an emergency rotation is not the first time anyone runs it.
NIST SP 800-53 Rev. 5 controls SC-12 Cryptographic Key Establishment and Management and IA-5 Authenticator Management give the control language for this in audit terms, and NIST SP 800-63C covers federation assertions.
Common failure patterns
- Expiry notices to a departed admin. Entra ID notifies only the admin who added the app by default. Add a monitored distribution list.
- Activating before uploading. Switching signing at the IdP before the SP holds the new certificate is the classic outage, and Okta's documentation warns about exactly this.
- Same-hour cutover in Google Workspace. A new certificate can take up to 24 hours to become available to SAML apps.
- Deleting the old certificate too early. Keep it inactive until every application has signed in successfully on the new key.
- Forgetting SP-owned certificates. Request signing and encryption certificates expire on the vendor's schedule and break sign-in just as completely.
- Shared certificates with no application list. One expiry takes out dozens of applications, and the team finds out which ones from the help desk queue.
- No break-glass route into the SP. When SSO fails, nobody can sign in to fix the SP configuration.
Practitioner checklist
- Inventory every SAML trust with thumbprint, expiry, SP pattern, owner and SP contact.
- Route IdP expiry notifications to a monitored distribution list, and verify recipients in the console.
- Create new certificates at least 60 days before expiry with overlapping validity.
- Configure metadata URLs on every SP that supports them; record single-certificate SPs and book windows.
- Upload the new certificate to the SP before switching signing wherever the SP supports two certificates.
- Pilot one application, verify with a real sign-in, then roll out in batches.
- Keep the old certificate inactive until all applications are verified, then remove it from IdP and SP.
- Alert on signing certificate and federation configuration changes and reconcile against change records.
- Prefer per-application certificates and treat IdP admin API tokens as privileged credentials.
Standards and references
- Microsoft Learn: Manage certificates for federated single sign-on in Microsoft Entra ID
- Google Workspace Admin Help: Maintain SAML certificates
- Okta Help Center: Manage signing certificates
- Okta Developer: Sign the Okta certificate with your own CA
- NIST: SP 800-63C-4 Federation and Assertions
- MITRE ATT&CK: Forge Web Credentials, SAML Tokens
- NIST: SP 1800-16, Securing Web Transactions: TLS Server Certificate Management
Related NHI Mgmt Group resources: SAML Security Guide · How to rotate a SAML signing certificate in Entra ID without breaking SSO · SAML SSO Errors Troubleshooting Guide · Golden SAML and Federation Trust Abuse Defence Guide