From the notebook
AADSTS50003 Missing Signing Key: Microsoft Entra Fix
Fix AADSTS50003 missing signing key errors by restoring the SAML signing certificate safely, validating both trust sides, and preventing repeat outages.
An AADSTS50003 missing signing key error means Microsoft Entra ID reached a SAML enterprise application but could not use the signing certificate configured on that application object. The supported repair is to create a replacement SAML signing certificate, make the new certificate active, and remove the unused certificate after the service provider can trust the replacement.
Grab a coffee and preserve the failed sign-in first. Microsoft's dedicated AADSTS50003 troubleshooting reference describes this as an application-object problem: Entra does not recognize the certificate configured for the SAML application. This is not a user-certificate, password, MFA, Conditional Access, or app-registration-secret error.
The order matters. A new certificate can repair Entra's signing side, but the service provider must also trust that certificate before it accepts the resulting assertion. This guide turns Microsoft's concise fix into a change-controlled administrator runbook. It is based on current Microsoft documentation and does not claim a tenant-specific lab test.
AADSTS50003 missing signing key: the short answer
Work through these steps in order:
- Capture the exact error, UTC timestamp, request ID, correlation ID, user, application, tenant, and launch path.
- Confirm the failure is AADSTS50003 on the Microsoft sign-in side and that the enterprise application uses SAML single sign-on.
- Open Entra ID > Enterprise apps > All applications > [application] > Single sign-on > SAML and inventory the current SAML signing certificates, statuses, thumbprints, and expiry dates.
- Record how the service provider receives signing keys: federation metadata, multiple uploaded certificates, or one manually configured certificate.
- Create and save a replacement SAML signing certificate. Microsoft's certificate-management procedure requires at least Cloud Application Administrator for this path.
- Make the service provider trust the replacement before activation when its design allows overlap. If it accepts only one certificate, use a coordinated maintenance window.
- Make the new certificate active in Entra, then test both the normal service-provider-initiated journey and any supported My Apps journey.
- Verify that Entra issues a signed SAML response and that the service provider accepts it.
- Remove only the unused certificate identified by the repair, then document the new thumbprint, expiry, notification recipients, validation evidence, and owner.
Do not begin by deleting the enterprise application. Do not rotate an OAuth client secret, upload a user's certificate, disable Conditional Access, or recreate every SAML setting. Those actions target different control planes and can expand the outage.
What AADSTS50003 proves—and what it does not
Microsoft's authentication error reference names AADSTS50003 MissingSigningKey: sign-in failed because the application has no usable signing key or certificate. The dedicated troubleshooting page narrows the documented scenario to a SAML application whose application object is corrupted and whose configured certificate is not recognized by Entra. (error-code reference, AADSTS50003 cause)
That evidence places the first repair boundary on the Entra side of SAML token issuance. It does not by itself prove that:
- the service provider has an expired certificate;
- the user supplied a bad password or failed MFA;
- Conditional Access blocked the request;
- the SAML Identifier or Reply URL is wrong;
- an application-registration secret or certificate expired;
- a certificate used for Microsoft Entra certificate-based authentication is untrusted; or
- the service provider rejected an assertion that Entra successfully issued.
The last distinction is especially useful. Microsoft's SAML debugging guidance separates errors shown on the Microsoft sign-in page from errors shown on the application's page. If the service provider receives a SAML response and then rejects its signature, the failure has crossed into the application's trust store. AADSTS50003 means you must first restore Entra's ability to sign. (debug SAML single sign-on)
If the evidence instead points to certificate-based user authentication, use the site's AADSTS50017 certificate-validation guide. A SAML request that asks for an incompatible authentication class is likewise a separate protocol boundary, reported as AADSTS75011 rather than AADSTS50003.
Understand the two-sided SAML certificate trust
Microsoft Entra acts as the identity provider for this enterprise application. It signs the SAML response, assertion, or both with the application-specific X.509 certificate. The service provider validates that signature before creating its own application session. Microsoft's signing-options reference documents the three supported choices—sign the assertion, sign the response, or sign both—and says SHA-256 is the default and recommended algorithm for applications that support it. (SAML certificate signing options)
The repair therefore crosses two related but different states:
- Entra signing state: the enterprise application must have a recognized active certificate that Entra can use to sign the SAML token.
- Service-provider trust state: the application must have the matching public certificate, or obtain it from the correct federation metadata, and accept the signing option and algorithm Entra uses.
Analysis: activating a newly recognized certificate can clear AADSTS50003 and still expose an application-side signature error if the service provider has not learned the new public key. That is not contradictory. It means token issuance is repaired while downstream validation is not yet aligned.
This is also why the site's broader SAML and Microsoft identity protocol guide is useful context: a SAML signing certificate belongs to the identity-provider-to-service-provider trust relationship. It is not interchangeable with an OAuth client credential or a user's authentication certificate.
Preserve evidence before changing the certificate
Create a small evidence bundle before touching the application:
- complete AADSTS50003 text and failure reason;
- UTC timestamp, request ID, correlation ID, and trace ID when present;
- tenant ID, user object ID, application display name, Application ID, and enterprise-application object ID;
- service-provider-initiated versus My Apps or other identity-provider-initiated launch;
- the current SAML Identifier, Reply URL inventory, Sign on URL, signing option, and signing algorithm;
- each visible SAML signing certificate's status, thumbprint, start time, and expiry time;
- the service provider's trusted thumbprint or metadata URL, obtained through its approved administration path;
- last known successful sign-in and first known failure;
- recent enterprise-application, certificate, metadata, vendor, automation, or ownership changes; and
- the business owner, technical owner, maintenance authority, and rollback decision-maker.
Open Entra ID > Monitoring & health > Sign-in logs with at least Reports Reader and locate the event by the identifiers and time. Microsoft recommends reading the event as who, how, and what: the identity, client application, and target resource. Preserve the exact error and application identifiers; do not substitute a display-name match for an object match. (sign-in logs, sign-in activity details)
Do not attach private keys, PFX files, live SAML responses, session cookies, passwords, or bearer tokens to an incident ticket. The service provider needs the public signing certificate or metadata—not Entra's private signing material.
Confirm that you are repairing the right enterprise application
Before creating a certificate, prove the object and flow:
- Match the failed sign-in's Application ID and resource to the enterprise application.
- Confirm Single sign-on is set to SAML.
- Compare the request's issuer with the configured SAML Identifier.
- Compare the launch path with the application's normal production path.
- Check whether another enterprise application has a similar display name or Identifier.
- Record whether the app is gallery or non-gallery and follow its current integration tutorial where one exists.
This step prevents a common incident mistake: repairing a similarly named test instance while production users continue to hit the damaged service principal.
Do not edit the Identifier or Reply URL to solve a missing signing key. A callback mismatch has its own evidence and remediation; the site's AADSTS50011 reply-URL mismatch guide covers that path.
Choose the safe replacement path
Microsoft's dedicated AADSTS50003 resolution is direct: create a new certificate in the SAML signing-certificate section, save it, make it active, and remove the unused certificate. Microsoft's broader certificate-management guidance adds the operational detail needed to avoid replacing one outage with another. (AADSTS50003 resolution, manage SAML federation certificates)
The service provider consumes federation metadata
This is the preferred rollover design when the application supports it correctly. Microsoft recommends that independent software vendors ingest the per-tenant, per-application federation metadata, support primary and secondary certificates, and refresh metadata regularly.
Use this sequence:
- Create and save the replacement certificate in Entra so it appears as inactive.
- Confirm the application's metadata process discovers the replacement public certificate as a secondary key.
- Prove the exact new thumbprint on both sides.
- Make the replacement active in Entra.
- Test the supported sign-in journeys and inspect the certificate used in the returned SAML response through an approved diagnostic path.
- Remove the retired certificate only after successful production evidence and the documented observation window.
Do not assume “metadata URL configured” means “metadata refreshed.” Obtain the service provider's refresh evidence or force a supported refresh through its documented administration procedure.
The service provider accepts multiple certificates
Upload the replacement public certificate as a secondary trusted certificate before activating it in Entra. Confirm its encoding and thumbprint, retain the current key during overlap, activate the replacement, test, and then retire the old key according to the application's supported procedure.
Microsoft's certificate-management page explains that Entra lets administrators download the active certificate in raw or Base64 form and, for some gallery applications, federation metadata XML. Use the format required by the application's integration documentation; converting or renaming files by guesswork is not a validation step.
The service provider accepts only one certificate
Treat this as a coordinated outage-risk change. Agree on a maintenance window, preserve the existing public certificate and configuration, prepare the replacement on both sides, switch within the window, and have both administrators available to test and roll back the application-side trust if required.
Microsoft explicitly recommends choosing a downtime interval when an application can handle only one certificate at a time. The durable improvement is for the vendor to support metadata-driven rollover or overlapping keys—not a longer emergency checklist.
Create and activate the replacement certificate
Use an account with an appropriate application-management role. Microsoft's current procedure lists Cloud Application Administrator as the minimum role for the documented portal path, while its certificate-management prerequisites also list Application Administrator and Privileged Role Administrator.
In the Microsoft Entra admin center:
- Browse to Entra ID > Enterprise apps > All applications.
- Select the exact affected application.
- Select Single sign-on, then SAML.
- In SAML Signing Certificate, select the edit control.
- Select New Certificate, choose the intended expiry within the supported range, and save it.
- Record the new certificate's inactive status, thumbprint, and expiry.
- Download only the public certificate or metadata format required by the service provider.
- Complete the appropriate trust-overlap step from the previous section.
- Make the new certificate active and save the change.
Do not change the signing option or algorithm during the recovery unless separate evidence proves that change is required and the service provider supports it. Certificate replacement, response-versus-assertion signing, and SHA-1-versus-SHA-256 are independent variables. Changing all three makes rollback and diagnosis much harder.
Microsoft notes an important expired-certificate behavior: if an expired certificate and an inactive valid certificate coexist, Entra can use the valid certificate even before it is marked active. That can surprise a service provider that trusts only the old key. Treat certificate creation itself as a production change when the current key is already expired. (certificate rollover behavior)
Validate both halves of the repair
Use fresh evidence, not the disappearance of one browser error.
Prove Entra can issue the SAML response
Run the documented Test single sign-on experience from the application's SAML page. Also test the application's normal production entry point. Microsoft's debugging guide says that a successful test proves Entra issued a SAML response and the application used it to sign the user in.
For each test, record:
- UTC time, user, entry point, request ID, and correlation ID;
- Entra sign-in result and exact application identifiers;
- whether AADSTS50003 disappeared;
- the signing certificate thumbprint in the captured SAML response, inspected only in an approved diagnostic environment;
- the service provider's signature-validation result; and
- the final application landing page and expected authorization.
Prove the service provider accepts the replacement
A Microsoft-side success is necessary but not sufficient. If the user reaches the application's page and receives a signature or certificate error, compare the response's public certificate thumbprint with the service provider's trusted key. Do not rotate the Entra certificate again until you prove whether the application imported, refreshed, or selected the replacement.
Test every supported launch shape:
- service-provider-initiated sign-in from the application's URL;
- identity-provider-initiated sign-in from My Apps, if supported;
- a fresh private browser session;
- a representative assigned user; and
- a negative test proving an unassigned or unauthorized identity is still denied as designed.
Conditional Access should remain intact. Once token issuance is restored, use the Conditional Access sign-in-log field guide if policy evaluation becomes the next failure boundary.
Remove only the unused certificate
Microsoft's AADSTS50003 repair ends by removing the unused certificate. Interpret that narrowly: remove the certificate superseded by this repair after you have proved the new key in production and confirmed that no supported service-provider path still depends on the old one.
Before removal, record:
- old and new thumbprints;
- old and new status and expiry;
- service-provider trust state;
- successful test evidence for each supported flow;
- change and audit record identifiers;
- observation window and owner approval; and
- rollback limits after removal.
Do not remove every inactive certificate merely to make the pane look tidy. An inactive replacement can be part of a planned rollover, and a secondary certificate can be intentionally staged for the application. Ownership and evidence decide whether a certificate is unused.
Prevent the next missing-signing-key outage
Certificate recovery is incomplete until the ownership gap is repaired.
Microsoft documents email notifications 60, 30, and 7 days before a SAML signing certificate expires. Configure monitored addresses on the application's SAML certificate page, verify them well before expiry, and use a distribution list where appropriate. Microsoft allows up to five addresses, including the administrator who added the application. (SAML certificate expiration notifications)
Then add these controls:
- named business and technical owners for every SAML application;
- an inventory of active and staged certificate thumbprints and expiry dates;
- notification recipients that survive staff turnover;
- a service-provider runbook describing metadata refresh or certificate import;
- a tested overlapping-key rollover procedure;
- a nonproduction or pilot application where the vendor supports one;
- a calendar trigger before Microsoft's first 60-day notice;
- audit review for unexpected certificate and SSO configuration changes; and
- positive and negative sign-in tests after every rotation.
Microsoft's guidance for software vendors is the architectural target: consume the per-application metadata, accept primary and secondary certificates, refresh metadata at least every 24 hours, and expose certificate-management automation. An application that can trust only one manually pasted certificate will keep turning routine rollover into a coordinated incident.
AADSTS50003 administrator checklist
- Capture the exact error, UTC time, request ID, correlation ID, user, and application IDs.
- Confirm the application uses SAML and the failure appears on the Microsoft sign-in side.
- Inventory current certificate statuses, thumbprints, expiry dates, signing option, and algorithm.
- Identify whether the service provider uses metadata, overlapping keys, or one manual key.
- Preserve the last-known-good configuration and change history.
- Create and save one replacement SAML signing certificate.
- Make the service provider trust the replacement before activation when supported.
- Coordinate a maintenance window when the application accepts only one certificate.
- Activate the replacement in Entra without changing unrelated SAML settings.
- Test the production launch path and any supported My Apps path.
- Prove the response thumbprint and application signature validation agree.
- Confirm Conditional Access and application authorization still behave as intended.
- Remove only the certificate proven unused by this repair.
- Configure monitored expiry notifications and durable ownership.
- Record the final thumbprint, expiry, evidence, operator, and rollback boundary.
Frequently asked questions
Does AADSTS50003 mean the SAML certificate expired?
Not necessarily. Microsoft's dedicated page says the application object is corrupted and Entra does not recognize the configured certificate. Record the expiry, but do not infer expiration from the code alone.
Should I rotate the app registration client secret?
No. A client secret authenticates an OAuth or OpenID Connect confidential client. AADSTS50003 in the documented scenario concerns the SAML token-signing certificate on an enterprise application.
Should I delete and recreate the enterprise application?
Microsoft's supported first repair is to replace the SAML signing certificate, not delete the application. Deletion can remove assignments, claims, SSO settings, ownership, and identifiers that are unrelated to the damaged certificate state.
Why did AADSTS50003 disappear but the application still rejects sign-in?
Entra can now sign the SAML response, but the service provider might not trust the replacement public key. Compare the response's signing thumbprint with the application's trusted certificate or metadata state.
Can I keep the old certificate for rollback?
Keep it only through the evidence-based overlap or observation window supported by the application. Microsoft's AADSTS50003 procedure says to remove the unused certificate after activating the replacement. Do not call a certificate unused until every supported flow trusts the new key.
Do I need to disable Conditional Access while repairing the certificate?
No. Conditional Access is a separate evaluation boundary and cannot make an unrecognized SAML signing certificate usable. Keep policy intact and troubleshoot it only if the repaired sign-in reaches policy evaluation and then fails there.
What should I send to Microsoft support?
Provide the tenant ID, enterprise-application object ID and Application ID, UTC timestamp, request ID, correlation ID, complete error and failure reason, SSO mode, sanitized certificate statuses and thumbprints, last successful time, first failed time, recent application changes, attempted replacement steps, and fresh test results. Do not send private keys, PFX files, passwords, cookies, or live tokens.
AADSTS50003 is a narrow failure with a two-sided recovery. Restore a recognized signing certificate in Entra, make the service provider trust the matching public key, test issuance and validation separately, and only then retire the unused certificate. That sequence fixes the outage without turning one damaged key into a redesigned application.
Microsoft sources
- AADSTS50003 no signing key configured
- Microsoft Entra authentication and authorization error codes
- Manage certificates for SAML federated single sign-on
- Application-management certificate FAQ
- Certificate signing options in a SAML token
- Debug SAML-based single sign-on
- Microsoft Entra sign-in logs
- Microsoft Entra sign-in activity details
About the author
MU.AMicrosoft 365 / Entra Engineer
MU.A is the editorial byline for Sentinel Identity, covering Microsoft Entra, Microsoft 365, and identity administration. Send corrections or questions through the contact page.
Feedback
Was this article helpful?
Anonymous — no account or comment required.
Related reading
AADSTS700084 SPA Refresh Token Expired: Entra Fix Guide
Fix AADSTS700084 SPA refresh token expired errors by restoring top-level interaction, repairing MSAL fallback, and validating the 24-hour token boundary.
AADSTS50196 Loop Detected: Microsoft Entra Fix Guide
Fix AADSTS50196 loop detected errors by isolating repeated token requests, repairing cache and retry logic, and validating Microsoft Entra sign-in evidence.
AADSTS70043 Sign-In Frequency: Microsoft Entra Fix
Fix AADSTS70043 by tracing the Conditional Access sign-in frequency policy, separating expected reauthentication from client loops, and validating recovery.