Skip to main content
AppAlert

What a SAML signing certificate is and why it expires

What a SAML signing certificate is in Microsoft Entra, how it differs from token encryption and app authentication certificates, and why it expires.

Reviewed

On this page

Short answer

Microsoft Entra signs SAML tokens with an X.509 certificate on the enterprise application. That certificate expires. Renewal is a coordinated rollover with the application. The steps live on the SAML signing certificate renewal guide.

What a SAML signing certificate is

This topic applies to apps that use Microsoft Entra single sign-on through SAML. When a user signs in through Entra with SAML, Entra sends a token to the application with an HTTP POST. The tokens are signed with the unique certificate generated in Microsoft Entra ID. See Microsoft's certificate signing options.

When SAML-based sign-on is configured for a gallery app, Microsoft Entra ID generates a self-signed certificate that is valid for three years. See Microsoft's federated SSO certificate tutorial.

The identity provider uses the private key of the certificate to sign issued tokens, so the application can check that the token came from the identity provider it is configured to trust. In the Entra admin center, the public certificate is under the application's Single sign-on properties, under the heading SAML Signing Certificate. If the application has more than one certificate, all of them are in the federation metadata XML file. See Microsoft's AD FS SAML migration guidance and the certificate tutorial.

Signing options are: sign the SAML assertion, the default for most gallery apps; sign the SAML response; or sign both. The default signing algorithm is SHA-256. SHA-1 is available when an application supports only SHA-1. Microsoft recommends SHA-256 otherwise. See Microsoft's certificate signing options.

Signing versus encryption

A token encryption certificate is a different object. When encryption is configured, Entra encrypts SAML assertions with the public key from a certificate stored in Entra. The application decrypts with the matching private key. Token encryption is a Microsoft Entra ID P1 or P2 feature. Without encryption, SAML tokens still travel only over HTTPS/TLS, not in the clear. Entra uses AES-256 for the assertion data. Encryption certificates can be stored on the application object with usage Encrypt. The active one is identified by tokenEncryptionKeyID. See Microsoft's SAML token encryption guidance.

Where the certificate lives, and what it is not

SAML signing certificates are created and managed under Enterprise applications, Single sign-on. In the admin center, the Enterprise applications list is the view of service principals in a directory. App registrations are the application objects. Client secrets and app authentication certificates are added on the application object. See Microsoft's app objects and service principals documentation and the certificate tutorial.

A SAML signing certificate is not an app registration client secret, and it is not the certificate used for private_key_jwt client authentication. That contrast is on certificate versus client secret.

Enterprise applications can also hold a different kind of credential: a client secret. See Microsoft's servicePrincipal addPassword documentation. That case is covered in the enterprise app secret renewal guide.

Entra does not give out the private keys of certificates it issued itself. To use the same signing certificate on more than one app that is not the default Entra certificate, Microsoft says to use an external certificate authority and upload a PFX. See Microsoft's application certificate FAQ.

The application owner or an Application Administrator can update certificates in the admin center, PowerShell, or Microsoft Graph. The tutorial's prerequisites also list Privileged Role Administrator, Cloud Application Administrator, or Application Administrator for the management procedures there. See the certificate FAQ and the certificate tutorial.

Lifetime and why it expires

The default lifetime is three years when Entra creates the certificate during SAML SSO setup. You can choose a date up to three years from the current date when you create a new certificate. You cannot change the date after you save the certificate. A new row is saved as Inactive. See the certificate tutorial, SSO deployment planning, and the certificate FAQ.

Microsoft describes SAML certificates in Entra as typically expiring every 1 to 3 years. Rollover needs coordination with the application. Automatic discovery depends on the application reading federation metadata. Microsoft recommends that ISVs support more than one signing certificate and check metadata at least every 24 hours. That 24-hour cadence is ISV guidance, not a customer obligation. See the certificate tutorial.

Entra can also create a replacement in the admin center or through Microsoft Graph. The rollover steps are in the SAML signing certificate renewal guide.

What happens when it expires

If the application does not validate certificate expiry, and the certificate still matches on both sides, the application can remain accessible after expiry. Microsoft still tells you to have the application validate expiry. If an expired certificate is already in place and you generate a new one, Entra uses the new certificate to sign tokens even before you make it active. If both an expired certificate and an inactive valid certificate exist, Entra uses the valid certificate, and users might see an outage if the application was not updated. See the certificate tutorial.

How Microsoft notifies you

Microsoft Entra ID sends an expiry email 60, 30, and 7 days before a SAML certificate expires, from azure-noreply@microsoft.com. You can add up to five addresses, including the administrator who added the app. Use a distribution list to reach more people. If addresses were set with Microsoft Graph or PowerShell, the notification must be checked in the admin center under Enterprise applications, the app, Single sign-on, SAML Certificates, or the emails might not be sent. See the certificate tutorial.

The same tutorial names azure-noreply@microsoft.com. Microsoft's certificate FAQ says the option to edit those emails received from aadnotification@microsoft.com does not exist. This page does not resolve that difference.

For how those SAML mails compare with other Entra notices, see app secret expiration alerts.

After you understand it: find expiry, renew, and compare alerts

To find expiring SAML certificates, check Microsoft's mail settings, and roll the certificate over, use the SAML signing certificate renewal guide. To compare Microsoft's SAML mails with other Entra notices, use app secret expiration alerts. For the certificate used in app authentication, see certificate versus client secret.

If you are building a wider expiry inventory that also covers app registration secrets and certificates, start with monitoring Entra app secret and certificate expiration.