Docs
Live demo
POST/api/v2/ssh/certificates

Sign the public key of the caller with the SSH certificate authority of the organization for one SSH target the caller has a rule on. The certificate lists one principal, lives as long as the target allows and is recorded. Principal never sees the private key. An API token marked as an AI agent gets a certificate only when it was issued with allow_credentials_read, otherwise 403 auth.api_token_not_allowed (details.reason=api_token_credentials_read_not_allowed).

Request body application/json · SSHCertificateRequest

Required2 of 2 fields
target_idstring · uuidrequired
public_keystringrequired

OpenSSH public key, ssh-ed25519, ecdsa or RSA of at least 2048 bits.

min length 20 · max length 16384

Responses

201

Created

SSHCertificateResponse · 8 fields
certificatestringrequired

The certificate in OpenSSH format, to save next to the private key as id_*-cert.pub.

serialstringrequired
principalstringrequired
key_idstringrequired
valid_afterstring · date-timerequired
valid_beforestring · date-timerequired
account_namestring
hostsarray of SSHCertificateHostrequired
5 fields
namestringrequired
addressstringrequired
portintegerrequired
account_namestring

The Linux account to sign in as on this host. Empty until a rule of the person is applied there.

shared_accountsarray of stringrequired

Shared accounts such as deploy that the certificate also opens on this host, sorted by name. Empty when no applied rule gives one.

409

Conflict

Common errors: 400 401 403 404 413 429 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close