Practical security for everyday technology.

An SSH host certificate lets a trusted authority identify a server

A laptop terminal with unreadable secure connection details beside a simple server rack.
AI-generated photographic illustration; not documentary photography.

An SSH host certificate changes how a client can recognise a server. Instead of trusting each server key individually, a configured client can trust a certificate authority that signs host keys for an authorised set of names. The authority becomes part of the trust decision.

The OpenBSD ssh-keygen manual describes certificates containing a public key, identity information, principals, and options signed by a CA key. Host principals identify the names for which the certificate is valid. This is OpenSSH’s certificate format, not a web TLS certificate pasted into an SSH configuration.

Follow the identity check

A conceptual example has a client connecting to a host named build.example.internal. The server presents its host certificate. The client needs an appropriate trust configuration for the signing authority, and the certificate needs to be valid for the intended host identity and time period.

A signature alone is therefore not a complete explanation of trust. Which authority signed it, which names are covered, and whether the certificate is valid all matter. A broadly configured trust rule can authorise more than its administrator intended.

What remains an administrative responsibility

  • Protect the CA’s private signing key.
  • Define which hostnames an issuer is permitted to certify.
  • Manage validity periods and renewal.
  • Maintain a response process for compromised keys and revoked certificates.

The certificate does not log a user into an account by itself. Server identity and user authentication are separate parts of the connection. Nor does it make a warning about a changed or invalid identity something to dismiss automatically.

Before deployment, test the intended hostnames and failure cases in a controlled environment using the documentation for the installed OpenSSH version. A successful connection is only half the check; a client should also reject a certificate outside the intended trust scope. The practical benefit comes from a well-managed identity system, not from removing prompts without understanding why they appeared.