PATCH
/
api
/
v1
/
ssh
/
certificate-templates
/
{certificateTemplateId}
curl --request PATCH \
  --url https://us.infisical.com/api/v1/ssh/certificate-templates/{certificateTemplateId} \
  --header 'Content-Type: application/json' \
  --data '{
  "status": "active",
  "name": "<string>",
  "ttl": "<string>",
  "maxTTL": "<string>",
  "allowedUsers": [
    "<string>"
  ],
  "allowedHosts": [
    "<string>"
  ],
  "allowUserCertificates": true,
  "allowHostCertificates": true,
  "allowCustomKeyIds": true
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "sshCaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "<string>",
  "name": "<string>",
  "ttl": "<string>",
  "maxTTL": "<string>",
  "allowedUsers": [
    "<string>"
  ],
  "allowedHosts": [
    "<string>"
  ],
  "allowCustomKeyIds": true,
  "allowUserCertificates": true,
  "allowHostCertificates": true
}

Path Parameters

certificateTemplateId
string
required

The ID of the SSH certificate template to update.

Body

application/json
status
enum<string>
Available options:
active,
disabled
name
string

The name of the certificate template.

Required string length: 1 - 36
ttl
string

The default time to live for issued certificates such as 1m, 1h, 1d, 1y, ...

maxTTL
string

The maximum time to live for issued certificates such as 1m, 1h, 1d, 1y, ...

allowedUsers
string[]

The list of allowed users for certificates issued under this template.

allowedHosts
string[]

The list of allowed hosts for certificates issued under this template.

allowUserCertificates
boolean

Whether or not to allow user certificates to be issued under this template.

allowHostCertificates
boolean

Whether or not to allow host certificates to be issued under this template.

allowCustomKeyIds
boolean

Whether or not to allow custom key IDs for certificates issued under this template.

Response

200
application/json
Default Response
id
string
required
sshCaId
string
required
status
string
required
name
string
required
ttl
string
required
maxTTL
string
required
allowedUsers
string[]
required
allowedHosts
string[]
required
allowCustomKeyIds
boolean
required
allowUserCertificates
boolean
required
allowHostCertificates
boolean
required

Was this page helpful?