What is an SSH certificate and who meets it?
If you are reading an SSH configuration file, an ssh-keygen output, or a vendor answer that mentions certificates, the term usually refers to something other than a plain key file. The OpenBSD ssh-keygen(1) manual defines an SSH certificate as a public key together with some identity information, zero or more principal names (the users or hosts the certificate represents), and optional options, all signed by a Certification Authority (CA) key. The CA signature is what lets a server or client trust the certificate without storing every individual public key. The manual describes two kinds: user certificates, which authenticate users to servers, and host certificates, which authenticate server hosts to users. In practice, a team meets the term in three places: the output of ssh-keygen when a certificate is created or inspected, the server and client configuration that points to a trusted CA, and the answers vendors give when asked how their SSH access is managed.
When you review a certificate or a vendor's description of one, check a few concrete fields. The -n option sets the principals, which are typically usernames for user certificates and hostnames for host certificates, and the manual says host principals may use wildcards. The -I option sets a key identifier that appears in logs and can be used to revoke a key. The -V option sets the validity interval, and the manual states that without it a certificate is valid from the Unix Epoch to the distant future, so an absent validity window is a finding worth raising. The -s option names the CA key used to sign. Confirm which OpenSSH version a vendor runs, because certificate behavior and the surrounding configuration options differ across releases, and confirm the validity and principal settings against your own environment rather than assuming defaults.
Which names and certificate types do the sources use?
This table lists the terms and ssh-keygen flags the OpenBSD ssh-keygen(1) manual uses to create SSH certificates, with the certificate type each one produces. Read it as a lookup: match the term or flag you meet in a configuration, vendor answer or tender to the row that defines it, and confirm the exact behavior against the manual for the OpenSSH version you run.
| Term or flag | What it means | Where it applies |
|---|---|---|
| CA (Certification Authority) | The signing key that certifies another public key, producing an SSH certificate | Signs both user and host certificates with the -s option |
| User certificate | Authenticates users to servers | Created with ssh-keygen and a principal name list |
| Host certificate | Authenticates server hosts to users | Created with the -h flag |
| -s | Certifies (signs) a public key using the specified CA key | Used when creating either certificate type |
| -h | Creates a host certificate instead of a user certificate | Host certificate creation |
| -n | Takes comma-separated principals, typically usernames for user certificates or hostnames (wildcards allowed) for host certificates | User and host certificate creation |
| -I | Sets a key identifier used in logs and that may be used to revoke keys | Logging and revocation |
| -V | Sets a validity interval when signing; without it the certificate is valid from the Unix Epoch to the distant future | Certificate lifetime |
Where SSH certificates show up in practice
SSH certificates appear wherever teams issue, configure or review access to servers, from the command line to vendor answers and audit requests. The cards below list the contexts where the supplied sources support the term, so you can recognize it in your own environment.
The ssh-keygen signing command
The ssh-keygen -s option signs a public key with a Certification Authority key, which is how a certificate is created. Check which CA key signs your certificates and who controls it, since that key decides which keys the servers will trust. The OpenBSD manual page describes the option and the other flags used alongside it.
User and host certificate types
ssh-keygen supports user certificates, which authenticate users to servers, and host certificates, which authenticate servers to users. A host certificate is created with the -h flag and uses -n for hostnames that may include wildcards. Confirm which type each of your systems uses, because the two types are configured and checked differently.
Principals and validity settings
The -n option names the principals a certificate represents, typically usernames, and -V sets a validity interval. Without -V, the sources say a certificate is valid from the Unix Epoch to the distant future, so an unset interval is a risk to check for. Review principal lists and validity windows in any certificate you are asked to explain.
Key identifiers in logs and revocation
The -I option sets a key identifier that appears in logs and may be used to revoke keys. Look for these identifiers when reviewing access records or answering questions about how a compromised certificate would be traced. The identifier is set by the signer, so confirm your team's naming convention for it.
Server and client configuration
Servers and clients must be configured to trust the CA key and to present certificates, and these settings live in the OpenSSH configuration files. The supplied sources do not give the exact directives for every version, so confirm the names against the release you run. This is where a certificate rollout is most often checked in a review.
Vendor documents and audit requests
Vendor answers and audit questionnaires may ask whether a product supports SSH certificates, and the supplied sources do not list product support for any specific product. Ask the vendor to name the OpenSSH or other version it ships and where the certificate features are documented. Treat an unsupported answer as unconfirmed until the version is checked.
How does a CA signature authenticate users and hosts?
A certificate authority (CA) signature lets a server or user trust a public key without trusting each key individually. The CA holds a private key and uses it to sign the public keys it vouches for, and each signed certificate carries identity information, one or more principal names, options and a validity window. The OpenBSD ssh-keygen(1) manual describes this structure, and it supports two roles: a user certificate authenticates a user to a server, and a host certificate authenticates a server to a user. Reviewers should read these roles separately, because a server that trusts a user CA is making a different decision from a client that trusts a host CA.
The principal names are what the certificate says it represents. For user certificates they are typically usernames, set with the -n option of ssh-keygen, and for host certificates they are hostnames, set with -n alongside the -h flag, where hostnames may use wildcards. The -V option sets the validity interval at signing time. Without it, the manual says a certificate is valid from the Unix Epoch to the distant future, so an expiry date should be set deliberately and checked during review. Ask vendors and internal teams to confirm which validity windows their signing process applies.
The key identifier, set with -I, is recorded in logs and is the handle used to revoke a specific key. When you audit a post-quantum migration of SSH, confirm that your CA signing workflow sets meaningful identifiers and that your log pipeline captures them, since that is how you trace which certificate authenticated a session. Confirm with your own environment and the ssh-keygen manual for the version you run how signature algorithms are chosen for the CA key, because the OpenSSH project has not yet named a post-quantum SSH certificate signature type.
Is a post-quantum SSH certificate signature type published?
No post-quantum SSH certificate signature type is documented on the OpenSSH project page. The page says OpenSSH will add post-quantum signature support in the future, but it does not name any algorithm or version for it. A reviewer who asks a vendor whether its SSH certificates use a post-quantum signature should expect a clear answer on this point, and a vendor that claims one should be asked to name the algorithm, the OpenSSH or other implementation version, and the document that defines it. Confirm the current state against the OpenSSH project page on post-quantum support before you rely on it, because the page is the authority on what the project has committed to.
The same page separates signatures from key agreement. It states that signatures do not carry the same store-now-decrypt-later risk as key agreement, so its stated priority for signature keys is to retire classical ones before capable quantum computers exist. For a team that manages SSH user and host certificates, this means the migration question for certificates is inventory and retirement planning, not an immediate swap of the signature algorithm. Ask which CA keys sign your user and host certificates, how long those keys and certificates are valid (the -V validity interval set at signing), and which principals and key identifiers (-n, -I) they cover, so you know what must be reissued when a new signature type becomes available.
When you review a vendor answer on SSH certificates, keep key agreement and certificate signatures apart. A post-quantum key exchange such as mlkem768x25519-sha256 protects session keys and says nothing about the CA signature that vouches for a certificate. Ask the vendor which component each post-quantum claim applies to, and avoid accepting a statement that a product is post-quantum compliant or certified as an answer. No such statement can be verified from the sources on this page, and any certification must come from the issuing body and name the exact module and version.
What should an SSH migration check about certificates?
This sequence tells you which certificates in your estate depend on classical signature keys, what post-quantum support your SSH client and server versions actually negotiate, and what to ask vendors before you change anything. Each step ends with a record you can review or hand to an auditor.
Inventory where certificates are issued
Identify every system, script, or service that issues SSH user or host certificates with ssh-keygen -s or an equivalent tool. Record the host or team that runs each issuing process, and the location of each CA private key. Note whether each CA key lives on a file system, in a hardware module, or in a secrets manager. The check is complete when every issuing point appears on one list with an owner. Use the OpenBSD ssh-keygen(1) manual to confirm which options each issuing process relies on.
Identify which CA keys sign certificates
For each issuing point, record which CA public key is trusted by servers (through TrustedUserCAKeys or equivalent) and by clients (through host certificate trust). Confirm the key type and fingerprint for each CA. Map each CA to the user and host populations it covers. The output is a table linking every CA key to the certificates it signs and the systems that accept it. A CA that signs for multiple environments should be flagged, since its key type affects all of them.
Record algorithms and validity intervals
Export the existing certificates and read the key type, signing algorithm, principals, key identifier (-I), and validity interval (-V) for each one. Note any certificate issued without a validity interval, since the ssh-keygen(1) manual says it then remains valid from the Unix Epoch to the distant future. Record the expiry dates so you can plan reissuance around them. The check is complete when each certificate has a row with algorithm, principals, and validity recorded.
Check negotiated key agreement on server and client versions
Determine the OpenSSH version on each server and client. Confirm whether post-quantum key agreement is enabled by default in that version, using the OpenSSH post-quantum page as the reference. Record which method (for example, sntrup761x25519-sha512 or mlkem768x25519-sha256) each pair negotiates in a test connection. Check whether WarnWeakCrypto is on, since the OpenSSH 10.1 and 10.6 release notes describe warnings for non-post-quantum key agreement. Treat this as an observation of your own versions, not a guarantee for other builds or vendors.
Ask vendors about post-quantum certificate signatures
Send each SSH server, appliance, or CA-tooling vendor a written question asking whether post-quantum certificate signature types are planned, which algorithms they name, and which product version will support them. Ask whether the answer is documented in a published reference. The OpenSSH project page says post-quantum signature support will come in the future without naming algorithms or versions, so record that as its current position. Keep the responses in your inventory file with the date received.
Confirm the changes in a test environment
Build a test environment that mirrors one CA, one client, and one server from your inventory. Reissue a test certificate, connect with the target client and server versions, and confirm the negotiated key agreement and certificate acceptance. Record the server and client logs, including any WarnWeakCrypto messages. Repeat for each distinct version pair in production. The check is complete when the test results match the inventory rows you intend to change, and any mismatch is logged for follow-up before rollout.
What do readers commonly confuse with SSH certificates?
SSH certificates share vocabulary with TLS certificates, host keys and key exchange, and the terms overlap in ways that cause misreadings in specifications and vendor answers. The cards below separate these pairs so reviewers can tell which part of an SSH setup a given term refers to.
SSH certificates versus TLS X.509 certificates
An SSH certificate binds a public key to identity information, one or more principal names and options, and is signed by a Certification Authority key. It is a different format from a TLS X.509 certificate, even though both are issued by a CA and both attest to a server or user. Reviewers should not assume that a PKI inventory covering TLS certificates also covers SSH certificates, and should check each SSH CA and certificate separately.
RFC 4253A CA-signed certificate versus a host key
A host key is the server's own key pair, which the server uses to sign the key exchange hash. A host certificate is a separate object: the CA signs the host's public key, and clients trust the CA rather than each individual key. The sources describe a host certificate as created with the -h flag of ssh-keygen, with -n listing the hostnames it covers. Confirm whether a given server presents a bare host key, a host certificate, or both.
Key exchange versus certificate signing
Key exchange, such as mlkem768x25519-sha256 or sntrup761x25519-sha512, establishes the session secret and is the part of the handshake where store-now-decrypt-later risk applies. Certificate signing is a separate step in which a CA or host key signs a public key, and the OpenSSH project notes that signatures do not carry the same store-now-decrypt-later risk. Readers who see a post-quantum name in a scanner output should ask whether it refers to key agreement or to a signature.
OpenSSH PQ pageA key identifier versus a revocation list
The -I option of ssh-keygen sets a key identifier that appears in logs and may be used to revoke keys. A key identifier is a label; it does not, by itself, constitute a revocation list. Reviewers should confirm which revocation mechanism their deployment uses and how it is maintained, rather than assuming that a logged identifier means a certificate has been revoked.
User certificates versus host certificates
The sources describe two types of SSH certificates: user certificates authenticate users to servers, and host certificates authenticate server hosts to users. Both are signed by a CA key, but they are checked in different places and answer different questions. A tender or audit request that asks about SSH certificates should be read for which type it covers, since controls for one do not automatically apply to the other.
ssh-keygen manualWhat do people search about SSH certificates?
What does SSH certificate stand for and what is it?
An SSH certificate is a signed structure that binds a public key to identity information, one or more principal names, and options, and is signed by a Certification Authority (CA) key. According to the OpenBSD ssh-keygen(1) manual, it consists of a public key, identity information, zero or more principal (user or host) names, plus options. The CA's signature lets a server or user trust the key without listing it individually. Two types are supported: user certificates, which authenticate users to servers, and host certificates, which authenticate server hosts to users. The manual describes this as a structure, not an algorithm, so it does not itself define a cryptographic method.
Is SSH certificate a post-quantum algorithm?
No. An SSH certificate is a certificate structure that carries a public key and is signed by a CA key. It is not a post-quantum algorithm and does not name one. Whether a certificate is post-quantum depends on the key type and signature algorithm used inside it and by the CA. The sources reviewed do not show a post-quantum SSH certificate signature type documented on the OpenSSH project page, which says that post-quantum signature support will be added in the future without naming algorithms or versions. Confirm the key and CA signature algorithms in your own environment before making any claim.
Is SSH certificate standardized in an RFC?
The sources reviewed do not show that the SSH certificate format is defined in a specific RFC. The OpenBSD ssh-keygen(1) manual documents the format as implemented by OpenSSH. The RFCs reviewed define other parts of SSH: RFC 4253 defines the SSH transport layer, including key exchange and the negotiation of signing algorithms, and RFC 8731 registers the key exchange methods curve25519-sha256 and curve448-sha512. To confirm whether a specific certificate format is standardized, check the IETF Datatracker or the RFC index directly.
Do OpenSSH products use SSH certificates?
The OpenBSD manual describes certificate support in ssh-keygen, which is part of OpenSSH. Whether a given product uses certificates depends on its configuration, and the sources reviewed do not show which products or versions enable them by default. Ask each vendor whether it supports user and host certificates, which key types and CA signature algorithms it accepts, and where its certificate configuration is documented. Check the product's own documentation and your environment before assuming support.
What changes for us if we move to SSH certificates?
Using certificates changes how trust is managed. Instead of distributing individual public keys to every server or user, a CA signs keys and servers or clients trust the CA. The main changes are:
- A CA key must be protected and rotated, and its compromise affects every certificate it signed.
- Certificates carry validity intervals set with the -V option. Without it, the manual says a certificate is valid from the Unix Epoch to the distant future, so you should set explicit validity.
- Key identifiers set with -I appear in logs and can be used to revoke keys.
These points describe the mechanism, not a guaranteed outcome. Check your own CA process and logging before relying on them.
How do host and user SSH certificates differ?
A user certificate authenticates a user to a server, and a host certificate authenticates a server host to a user. According to the OpenBSD manual, a host certificate is created with the -h flag, and its -n principals are hostnames that may use wildcards. A user certificate uses -n principals that are typically usernames. Both are signed with the -s option using a CA key. Confirm the principal names and options your deployment needs before issuing certificates.
What should we ask a vendor about SSH certificates?
Ask a vendor the questions that decide how certificates behave in your environment:
- Which certificate types are supported: user, host, or both?
- Which key types and CA signature algorithms are accepted, and are any post-quantum?
- How is the CA key stored, rotated and protected?
- Can validity intervals and principals be set, and are key identifiers logged?
- How are certificates revoked, and where is that documented?
- Which product version and configuration does each answer apply to?
Request written answers tied to a specific version, since the sources reviewed show that defaults change between OpenSSH releases.
Can we manage SSH certificates ourselves or do we need help?
Your team can manage SSH certificates in-house if it has the skills to run a CA, protect its key, set validity and principals, and log and revoke certificates. The sources reviewed do not give effort or duration figures for this work. DeployOpen plans, implements, hardens and documents self-hosted open-source platforms inside a client's own infrastructure, and most engagements are fixed-scope with scope and timelines agreed in writing before work starts. Ask for a written scope and quote that covers the CA setup, configuration and documentation.
How DeployOpen works on this
DeployOpen works on SSH certificates as part of implementing and hardening the SSH setup inside your own infrastructure. We scope which user and host certificates your environment needs, build and test the signing and validation configuration, and hand over documentation your security and compliance teams can review.
How we scope
- We inventory where your servers and users currently rely on SSH keys and which CA keys would sign user and host certificates.
- We agree in writing which principals, validity intervals and key identifiers your certificates will use before any work starts.
- We confirm which OpenSSH versions your fleet runs, since certificate and key exchange behavior depends on the version in use.
How we build
- We configure the CA signing process with ssh-keygen, setting principals with -n and validity windows with -V for each certificate type.
- We build host certificates with the -h flag and check that wildcard hostnames in -n match only the hosts you intend.
- We test that sshd and clients accept the certificates and that revocation through key identifiers set with -I works as your policy requires.
How we hand over
- We deliver written configuration, signing procedures and a record of the principals and validity settings used in your environment.
- We document how key exchange and host key choices interact with certificates, so reviewers can match what they see in sshd logs.
- We walk your team through issuing, renewing and revoking certificates so the process stays with your staff after handover.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers for changes to your CA and certificate setup.
- We can retest certificate validation after OpenSSH upgrades, including changes to key agreement defaults and logging behavior.
- Engagements are fixed-scope, so any follow-on work on certificates is agreed in writing before it starts.

