Enroll a certificate
Enroll a certificate
Certificate enrollment request
ca
string
requiredThe Certificate Authority name on which to enroll the certificate |
csr
string
requiredThe PEM-encoded CSR of the certificate to enroll |
template
object (EnrollmentRequestTemplate)
required
The template of the certificate. Requested extensions can be modified if this was allowed in template configuration. |
dataFrom
string | null (DataFrom)
This defines which information source the certificate should use: api uses information from the json request body alone : dn, dnElements, sans and extensions, csr uses information from the csr only, apicsr uses information from the json request body and fallbacks on the csr if the information is not explicitly defined
Enum
api
csr
apicsr
|
dn
string | null
The certificate's Distinguished Name in standard form. This has precedence over building the DN using dnElements |
dnElements
array of objects | null (Indexed Distinguished Name Element)
Elements to build the certificate's distinguished name. This can be overriden in the same request by the dn property |
sans
array of objects | null (Certificate SAN Element)
Elements to build the certificate's Subject Alternate Names |
extensions
array of objects | null (Certificate Extension Element)
Elements to build the certificate's Extensions |
-
201 Certificate successfully enrolled
idstring (Internal ID) requiredObject internal ID
castring requiredName of the Certificate Authority the certificate is enrolled on
certificatestring requiredThe PEM of the certificate
dnstring requiredThe Distinguished Name of the certificate
serialstring requiredThe serial number of the certificate
issuerstring requiredThe Distinguished Name of the issuer of the certificate
notBeforestring requiredThe start of the validity period of the certificate
notAfterstring requiredThe end of the validity period of the certificate
publicKeyThumbprintstring requiredThe thumbprint of the public key of the certificate
revokedboolean requiredIf true, the certificate is revoked
templatestring | nullName of the Template the certificate is enrolled on
revocationDatestring | nullThe revocation date of the certificate
revocationReasonstring | null (Revocation Reason)The revocation reason of the certificate
-
400 Bad Request
-
401 Unauthorized request
-
403 Forbidden action
-
404 Not Found
-
500 Internal Server error