<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content

Okta Smart Card Validation Fails With Certificate Validation Failed Error

Okta Identity Engine
All Engines
Okta Classic Engine
Multi-Factor Authentication

Overview

When attempting to sign in using a Personal Identity Verification (PIV) or Common Access Card (CAC), Okta generates a certificate validation error due to an invalid trust chain or an expired certificate. Resolve this issue by verifying the certificate chain's validity and uploading the correct, complete Certificate Authority (CA) chain to the Okta Admin Console. Users experience the following error when selecting a certificate and entering a PIN to unlock it during the login process:

 

Certificate Validation failed. Try again by quitting the browser then selecting another certificate.

 

Access the Okta login page and select Sign in with PIV/CAC Card as shown in the following image.

 

Sign in Page
 
Select the certificate from the list and enter the PIN to unlock it. The certificate status displays in the second part of the screen prompt.
 
Certificate path

Check the validity of the certificate as shown in the following image.

 
Certificate information

 

Although the certificate appears valid on the local machine, Okta generates the error upon login.

 

error message 

Applies To

  • Okta Identity Engine (OIE)
  • Okta Classic Engine
  • Personal Identity Verification (PIV) / Common Access Card (CAC)
  • Smart Card Validation

Cause

This issue occurs when Okta cannot establish a trust path to a trusted root for the incoming user certificate. The following factors may cause this issue:

  • An incomplete or outdated Certificate Authority (CA) chain configuration exists within Okta (for example, the Public Key Infrastructure (PKI) team deployed a new Intermediate Issuing CA that requires an upload to Okta).
  • The individual smart card certificate expires, or the Certificate Revocation List (CRL) explicitly revokes it.

The following image displays an example of an incomplete certificate chain configured in Okta.

Certificate uploaded to Okta

 

The following image displays the complete certificate chain containing the required additional intermediate CAs.

Intermediate CAs

 

A missing intermediate certificate authority causes the certificate validation failure.

Solution

How is the certificate validation error resolved?

Validate the user certificate status and upload the complete, corrected PKI chain to the Okta Admin Console.

  1. Verify the user-level certificate validity. Ensure the affected user's smart card certificate has a valid Serial Number, remains within the active expiration window, and the PKI provider does not revoke it.
  2. Obtain the updated CA chain. Contact the internal PKI team or third-party CA provider to obtain the complete, updated cryptographic chain. This chain includes all Root and Intermediate CAs currently signing user smart cards.
  3. Navigate to Security > Identity Providers in the Okta Admin Console.
  4. Select the name of the specific Smart Card / PIV / CAC Identity Provider (IdP).
  5. Choose the Actions dropdown menu and select Edit.
  6. Select Configure....
  7. Navigate to the Certificate chain section and select Edit.
  8. Select Browse and upload the new, complete root/intermediate certificate bundle.
Loading
Okta Support - Okta Smart Card Validation Fails With Certificate Validation Failed Error