Smart-card sign-in
On this page
Goal: users sign in to RHEL workstations with the same smart card and PIN they use on Windows, under the same rules: certificates from a CA in AD's NTAuth store, mapped to the account by UPN.
You need: smart cards already issued for Windows sign-in (a Smartcard Logon template or equivalent, the issuing CA in NTAuth), card readers, GPWarden on the workstations, and the Linux team to install the reader software.
How it differs from Windows
Windows accepts a smart card whenever one is presented. On RHEL, smart-card sign-in changes the sign-in stack (SSSD and PAM), so it stays off until a policy turns it on. Everything else follows Windows' rules.
1. Check what Windows already relies on
- The issuing CA is in NTAuth:
certutil -viewstore -enterprise NTAuthon a DC. If not,certutil -dspublish -f issuing-ca.cer NTAuthCA. - The card certificates carry the Smart Card Logon extended key usage and the user's UPN in the subject alternative name. Certificates that map to users another way (for example by altSecurityIdentities only) are not accepted on RHEL. In the Certificate Templates console, the card template's Extensions tab lists the application policies and its Subject Name tab the UPN:


2. Reader software (Linux team)
dnf install opensc pcsc-lite
systemctl enable --now pcscd.socket
pkcs11-tool --list-slots # the reader and the card should appear3. Turn it on for a pilot first
Link a GPO to a pilot group of computers (see rollout) with:
- Computer Configuration > Policies > Administrative Templates > GPWarden (RHEL) > System > Allow smart card sign-in: Enabled.
- Optionally Windows Settings > Security Settings > Local Policies > Security Options > Interactive logon: Smart card removal behavior: Lock Workstation or Force Logoff.

At the next refresh, GPWarden puts the NTAuth CAs into SSSD's smart-card CA store, configures SSSD to map the card's UPN to the account with the Smart Card Logon EKU required, and turns on authselect's smart-card feature. Passwords keep working.
4. Test before you require it
On a pilot computer, with a real reader and card:
- At the GNOME login screen, insert the card: the screen asks for the PIN instead of the password. Sign in.
klist: the user has a Kerberos ticket, so drive maps, printers and SSO work.- Remove the card: the session locks or signs out as the policy says.
- Try a card whose CA is not in NTAuth, or without the Smart Card Logon EKU: it must be refused.
- For administrators: check how
sudoand the GNOME admin prompts behave with the card inserted (PIN or password), so your administrators know what to expect.
Keep a way in that does not need a card while you test: an administrator account with a password, or the console.
5. Require the card
When the pilot works, Security Options > Interactive logon: Require smart card:
Enabled turns on authselect's with-smartcard-required: sign-in without a card
is refused, as on Windows. Widen the GPO's scope as in any rollout.
Turning it off
Remove the policies: GPWarden turns off only the authselect features it turned on, and removes its SSSD configuration and the CA store it wrote.
Check
gpwardenctl result shows smart-card sign-in: allowed with the number of NTAuth
CAs. authselect current lists
with-smartcard (and with-smartcard-required, with-smartcard-lock-on-removal)
when the policies apply. SSSD's log for the sign-in is
/var/log/sssd/sssd_pam.log.
Status
Verified in the lab: SSSD loads the configuration GPWarden writes, authselect's check passes, removal restores the previous state, and a card certificate on a PKCS#11 token authenticates for 802.1X. A PIN sign-in at the login screen with a hardware reader has not been run in the lab: do step 4 on your own hardware before requiring the card.