POST
/
api
/
v1
/
pki
/
certificate-templates

Body

application/json
caId
string
required

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

name
string
required

The name of the template.

Minimum length: 1
commonName
string
required

The regular expression string to use for validating common names.

Required string length: 1 - 100
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.

pkiCollectionId
string

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

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
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

Response

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

Was this page helpful?