Enroll a certificate

Enroll a certificate

Body required
application/json

Certificate enrollment request

ca
string required

The Certificate Authority name on which to enroll the certificate

csr
string required

The 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

Responses
  • 201 Certificate successfully enrolled
    id
    string (Internal ID) required

    Object internal ID

    ca
    string required

    Name of the Certificate Authority the certificate is enrolled on

    certificate
    string required

    The PEM of the certificate

    dn
    string required

    The Distinguished Name of the certificate

    serial
    string required

    The serial number of the certificate

    issuer
    string required

    The Distinguished Name of the issuer of the certificate

    notBefore
    string required

    The start of the validity period of the certificate

    notAfter
    string required

    The end of the validity period of the certificate

    publicKeyThumbprint
    string required

    The thumbprint of the public key of the certificate

    revoked
    boolean required

    If true, the certificate is revoked

    template
    string | null

    Name of the Template the certificate is enrolled on

    revocationDate
    string | null

    The revocation date of the certificate

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