v4

latestOpenAPI 3.0.32026-07-312,317012.2 MB
SSH Certificates

Sign SSH public key

post/api/v1/ssh/certificates/sign

Request body

certificateTemplateIdstring required

The ID of the SSH certificate template to sign the SSH public key with.

publicKeystring required

The SSH public key to sign.

certType'user' | 'host'

The type of certificate to issue. This can be one of user or host.

principalsstring[] required

The list of principals (usernames, hostnames) to include in the certificate.

ttlstring

The time to live for the certificate such as 1m, 1h, 1d, ... If not specified, the default TTL for the template will be used.

keyIdstring

The key ID to include in the certificate. If not specified, a default key ID will be generated.

Response

Default Response

serialNumberstring required

The serial number of the issued SSH certificate.

signedKeystring required

The SSH certificate or signed SSH public key.