Microsoft 365 sign-in (Entra ID)

AADSTS50017: certificate-based authentication certificate validation failed

AADSTS50017 means Microsoft Entra certificate-based authentication could not validate the user certificate chain or its CRL. Documented causes and admin fixes.

By EpiFive Editorial TeamSources checked How we check our guides

What the error means

AADSTS50017 is the Microsoft Entra code CertificateValidationFailed. It appears when a user signs in with Microsoft Entra certificate-based authentication (CBA), for example with a smart card or a certificate on the device, and Microsoft Entra ID cannot validate the certificate. The user sees "Validation of given certificate for certificate based authentication failed."

Microsoft's reference lists the validation failures behind the code: the issuing certificate cannot be found in the trusted certificates list, an expected CRL segment cannot be found, a delta CRL distribution point is configured without a corresponding CRL distribution point, valid CRL segments cannot be retrieved because of a timeout, or the CRL cannot be downloaded. The dedicated troubleshooting article groups the problems into certificate chain failures and invalid certificates.

Common causes

  • A certificate authority (CA) certificate in the chain is missing from the Microsoft Entra trusted store, for example the intermediate CA was not uploaded.
  • The Subject Key Identifier (SKI) and Authority Key Identifier (AKI) values do not line up, so the chain cannot be built.
  • A certificate in the chain is missing valid extension identifiers, such as certificate policy extensions, or its policy Object Identifiers (OIDs) are inconsistent across the chain.
  • The certificate revocation list (CRL) configuration or download fails, as listed in the reference.

How to fix it

1. Check that every issuing CA is uploaded

In the Microsoft Entra admin center, review the certificate authorities configured for certificate-based authentication. The user certificate can be issued by a root CA or by an intermediate CA. Microsoft says that with a non-root issuing CA, both the intermediate and the root CA certificates must be uploaded to the Microsoft Entra CA trusted store. Add any that are missing.

2. Compare SKI and AKI values

Open the details of the user certificate and of each uploaded CA certificate. The user certificate's AKI must point to the issuing CA certificate's SKI; an intermediate CA's AKI points to the root CA's SKI, and the root CA has its own SKI but no AKI. If there is no match, change the certificate or the missing CA certificate accordingly by configuring certificate authorities in the Microsoft Entra admin center.

3. Validate certificate policy extensions across the chain

Check the certificate policy extensions on the user certificate, the intermediate CA certificates and the root CA certificate. Microsoft says the extension and its OIDs must be consistent and valid across the entire chain. If any certificate is missing certificate policy extensions, reissue the CA certificate or the user certificate with the appropriate extensions embedded.

4. Check the CRL settings

The reference names several CRL failures under this code. As a general step, confirm that the CRL distribution point configured for each CA is reachable from the internet, that a delta CRL distribution point is only configured together with a CRL distribution point, and that the CRL is published and can be downloaded without timing out.

5. Try the sign-in again

After the trusted store or certificates are corrected, ask the user to sign in with the certificate again. The certificate-based authentication setup guide covers the CA configuration end to end.

If nothing works

As a general step, open the failed sign-in in the Microsoft Entra sign-in logs and read the failure reason, which should match one of the reasons listed in the reference. Microsoft's article also points to the login.microsoftonline.com/error lookup page. Work with the PKI team if a CA certificate needs to be reissued.

What we checked

Two Microsoft Learn pages were read on 2026-11-21. The Microsoft Entra error code reference defines AADSTS50017 as CertificateValidationFailed and lists the trusted list and CRL reasons. The dedicated AADSTS50017 troubleshooting article explains certificate chain and SKI/AKI failures, the intermediate and root CA upload requirement, and the certificate policy extension checks. The error was not reproduced for this page.

Last checked: 2026-11-21.

Official sources

Questions people ask

What does AADSTS50017 mean?

Microsoft lists it as CertificateValidationFailed: during certificate-based authentication, Microsoft Entra ID could not validate the certificate the user presented, for example because the issuing CA is not in the trusted list or a CRL could not be retrieved.

Do I need to upload the intermediate CA as well as the root CA?

Yes. Microsoft says that if the user certificate is issued by a non-root (intermediate) CA, both the intermediate and root CA certificates must be uploaded to the Microsoft Entra CA trusted store.

Can a user fix AADSTS50017?

Not usually. The fixes are in the Microsoft Entra certificate authority configuration or in the PKI that issued the certificate, so the user should report the error to the administrators.

Not your code?

Search the error code library, or report a code we don't cover. Spotted something out of date on this page? Report a correction.