POST
/
api
/
v1
/
pki
/
certificate-templates

Body

application/json
caId
string
required

The ID of the certificate authority to associate the template with.

commonName
string
required

The regular expression string to use for validating common names.

Required string length: 1 - 100
name
string
required

The name of the template.

Minimum length: 1
subjectAlternativeName
string
required

The regular expression string to use for validating subject alternative names.

Required string length: 1 - 100
ttl
string
required

The max TTL for the template.

extendedKeyUsages
enum<string>[]

The extended key usage constraint or default value for when template is used during certificate issuance.

Available options:
clientAuth,
serverAuth,
codeSigning,
emailProtection,
timeStamping,
ocspSigning
keyUsages
enum<string>[]

The key usage constraint or default value for when template is used during certificate issuance.

Available options:
digitalSignature,
keyEncipherment,
nonRepudiation,
dataEncipherment,
keyAgreement,
keyCertSign,
cRLSign,
encipherOnly,
decipherOnly
pkiCollectionId
string

The ID of the PKI collection to bind to the template.

Response

200 - application/json
caId
string
required
caName
string
required
commonName
string
required
id
string
required
name
string
required
projectId
string
required
subjectAlternativeName
string
required
ttl
string
required
extendedKeyUsages
string[] | null
keyUsages
string[] | null
pkiCollectionId
string | null