CertGrid CertGrid
Hands-on Lab·CompTIA Linux+

Keys, certificates, and what the server allows

Domain 3 names keys and certificates alongside mandatory access control. This guide makes a key pair and logs in with it, breaks the login with one chmod, reads what the SSH server actually permits on both families, and issues a self-signed certificate - then shows the two openssl checks that say whether it is trusted and whether it matches its key.

Security Guide 11 of 28 Intermediate

Both families. The key and certificate work is on the Debian host; the RPM host answers the sshd policy question differently, which is the point of that step.
Server NameIP AddressOSRolesCPURAMHDD
LPLUS-A01192.168.0.73Ubuntu 26.04 LTSDebian-family host - apt, ufw, netplan, AppArmor2 Core4 GB50 GB
LPLUS-B01192.168.0.74AlmaLinux 10.2RPM-family host - dnf, firewalld, NetworkManager, SELinux2 Core4 GB50 GB

This guide includes

Use this when setting up key-based access or deploying a certificate. This matters because both fail in ways that look like something else: a key with the wrong mode is refused by your own client before the server ever sees it, and a certificate that does not match its key produces an error about TLS rather than about files.

Before you start

  1. A key pair, and what each half is for

  2. Installing the public half, and logging in without a password

  3. The permission the client refuses to ignore

  4. What the server actually allows

  5. A self-signed certificate, and what it does not prove

  6. Putting the machine back

Official sources