Docs / Scenarios / Certificates for computers and users

PDF503 KB

Certificates for computers and users

On this page

Goal: every RHEL workstation and every user on it has a certificate from your enterprise CA, enrolled and renewed without anyone touching the workstation, as Windows auto-enrollment does.

You need: an enterprise CA (AD CS), GPWarden on the workstations.

What needs nothing at all

The enterprise root CAs published in AD are trusted on every RHEL member at once, as on Windows: GPWarden puts them in the system trust store (/etc/pki/ca-trust/source/anchors/gpwarden-ad-*.pem). Internal websites, LDAPS and other TLS services signed by your CA work in browsers and command-line tools without a setting.

1. Templates

In the Certificate Templates console:

  1. Duplicate Workstation Authentication for computers and User for users.
  2. On each copy's Security tab, give Domain Computers (or Domain Users, or a smaller group) Read, Enroll and Autoenroll.
  3. Set the validity and renewal periods you want (General tab).
  4. Publish both on the CA: Certificate Templates > New > Certificate Template to Issue.

These are the same templates Windows 11 uses; one template serves both.

2. Auto-enrollment policy

In a GPO that applies to the workstations (your Windows baseline works):

  • Computer Configuration > Policies > Windows Settings > Security Settings > Public Key Policies > Certificate Services Client - Auto-Enrollment: Enabled, with Renew expired certificates, update pending certificates, and remove revoked certificates and Update certificates that use certificate templates.
  • The same under User Configuration for user certificates.

Certificate Services Client - Auto-Enrollment, enabled in the Linux Desktop GPO

Computers enroll at their next refresh (gpwardenctl update for now, the certutil -pulse equivalent); users at their next sign-in.

3. Check

  • On the CA: Issued Certificates lists the workstation (WS042$) and each user, as for Windows clients.
  • On the workstation: gpwardenctl result | grep -i certificate shows the trusted AD root CAs and the enrollment. The computer's certificate is /etc/pki/gpwarden/<template>.crt, its key in /etc/pki/gpwarden/private/ (root only). trust list shows the AD root CAs.
  • For a user: ~/.cert/gpwarden/ (readable by the user only), and the user's NSS database for Chrome, Chromium and Edge when nss-tools is installed.

Renewal

  • Within the template's renewal period, the certificate is renewed the way Windows renews it: a request signed with the current key, which the CA records as a renewal.
  • Reenroll All Certificate Holders on a template (Certificate Templates console) makes every holder renew at its next refresh.
  • Request Handling > Renew with the same key keeps the key; otherwise a new key is made.
  • For user templates that need CA manager approval, Issuance Requirements > Valid existing certificate lets renewals through without a manager, as for Windows (the CA applies it to certificates with a UPN or e-mail name).

Approval by a CA manager

A template with CA certificate manager approval leaves the request pending. The workstation keeps the request and its key, makes no second request meanwhile, and collects the certificate at the first refresh after a manager issues it (Pending Requests > Issue, or certutil -resubmit).

What uses the certificates

UseGuide
Wi-Fi and wired 802.1X with EAP-TLS (computer and user)Wi-Fi and wired 802.1X
Smart-card sign-in (certificates on cards, from NTAuth CAs)Smart-card sign-in
Client certificates in Chrome and Edgethe user's NSS database, from user auto-enrollment
VPN and other servicesthe PEM files above; point the service at them

On a FIPS-mode workstation

Keys are made with RHEL's FIPS-validated OpenSSL; use RSA 2048 or larger, or ECDSA P-256/P-384, in the template's Cryptography tab (the defaults are fine).

If it does not work

  • No certificate: check the template's Security tab (the computer or user needs Enroll and Autoenroll), that the template is published on the CA, and journalctl -u gpwardend -g certificate on the workstation.
  • User certificates with the wrong SELinux label: with SSSD's default home directories (/home/<domain>/<user>), the Linux team runs semanage fcontext -a -e /home /home/<domain> && restorecon -R /home/<domain> once (Linux guide).
Questions about this page? Ask in the chat or write to support@gpwarden.com.