What the message means
A user tried to sign in to an enterprise application that uses SAML single sign-on, and Microsoft Entra ID (formerly Azure AD) had no signing certificate it could use for the app. Microsoft's error reference lists the code as MissingSigningKey: "Sign-in failed because of a missing signing key or certificate. This might be because there was no signing key configured in the app."
Microsoft's AADSTS50003 troubleshooting article applies to apps set up with SAML-based single sign-on. It gives the cause as an application object that is corrupted, so that Entra does not recognize the certificate configured for the app. The fix is a new SAML signing certificate.
The error reference notes that error codes and messages can change. Match the message text as well as the code.
Which case is yours
Sign-in shows AADSTS50003 for a SAML app. Entra has no signing certificate it can use for this app. Follow Fix it to create and activate a new signing certificate.
Sign-in fails inside the application, with no AADSTS code. The application holds a different certificate from the one Entra signs with. Microsoft's federation certificate tutorial warns that authentication might fail if the application is not updated after a new certificate is created in Entra. See SAML signing certificate expired.
The message names an app-specific signing key. AADSTS50146 (MissingCustomSigningKey) is a separate code in the same error reference: the app requires an app-specific signing key that is missing, expired, or not yet valid. This page does not cover it.
Fix it
These steps follow Microsoft's troubleshooting article and federation certificate tutorial.
-
Sign in to the Microsoft Entra admin center as a Cloud Application Administrator or Application Administrator. Open Entra ID, Enterprise apps, All applications, select the app, then Single sign-on. Under SAML Certificates, select the Edit icon. The SAML Signing Certificate page shows each certificate's status (Active or Inactive), expiration date, and thumbprint.
-
Read the application's SAML configuration instructions, linked from the same page. Note the certificate format the application expects and whether it accepts a second certificate during the change.
-
Select New Certificate, choose an expiration date up to three years ahead, and select Save. The new certificate appears as Inactive.
-
Download the new certificate in the format the application needs: raw, Base64, PEM, or federation metadata XML. Upload it to the application, or let the application read it from the federation metadata.
-
On the new certificate's row, select the ellipsis, then Make certificate active. The previously active certificate becomes Inactive.
-
Test a fresh sign-in to the application. Then remove the unused certificate under SAML Signing Certificate, as Microsoft's troubleshooting article describes.
If the app's current certificate has already expired, Microsoft's tutorial says a newly created certificate is considered for signing tokens even before you make it active. Upload the new certificate to the application promptly after you create it.
Where the old credential still lives
Entra keeps the private key of a SAML signing certificate. The application only holds the public certificate or its thumbprint, and every copy must change to the new certificate:
- The single sign-on settings in the application's admin console, where the certificate or its thumbprint was uploaded.
- Applications that read Entra's federation metadata, which pick up the new certificate only when they next download it.
- Separate instances of the same application, such as test and production, each with its own single sign-on settings.
- Vendor-managed configurations, where the vendor's support team uploads the certificate for you.
Prevent the next one
Entra sends an expiry email 60, 30, and 7 days before a SAML signing certificate expires, to up to five addresses set on the SAML Signing Certificate page. The federation certificate tutorial recommends a distribution list when more people need the notice, and checking the addresses in the admin center if you set them with Microsoft Graph or PowerShell.
Plan each rollover with the application owner before the old certificate expires. SAML signing certificate expired lists the steps with the portal and Microsoft Graph and a script that finds certificates close to expiry. SAML signing certificates explains which side holds which key.
FAQ
Is AADSTS50003 caused by an expired SAML certificate?
Microsoft's troubleshooting article does not name expiry. It attributes the error to a corrupted application object, where Entra does not recognize the configured certificate. Whether an expired certificate stops sign-in depends on the application: Microsoft notes that an app without expiry validation keeps accepting a certificate that matches on both sides, even after it expires.
Do I need to update the application after I create a new certificate?
Yes, unless the application reads Entra's federation metadata and picks up the new certificate on its own. Otherwise, upload the new certificate before or when you make it active, or sign-in to the application can fail.
Can I fix AADSTS50003 without a new certificate?
Microsoft's documented fix is to create a new certificate, make it active, and remove the unused one. Reactivating the certificate Entra does not recognize is not part of that procedure.
Is AADSTS50003 related to AADSTS700027?
No. AADSTS700027 concerns a certificate an app uses to sign in to Entra. AADSTS50003 concerns the certificate Entra uses to sign SAML responses for an enterprise application. See AADSTS700027.