GET Enrollment Patterns ID Settings

The GET /EnrollmentPatterns/{id}/Settings operation retrieves the enrollmentClosed Certificate enrollment refers to the process by which a user requests a digital certificate. The user must submit the request to a certificate authority (CA). policy settings for a specified enrollment pattern. These settings are determined by combining system-wide settings with the specified enrollment pattern settings. On success, the operation returns HTTP 200 OK with  details of the derived regular expressions, defaults, and policy. The response is determined as follows:

  • Enrollment pattern value exists: The enrollment pattern value is returned in the response.

  • Enrollment pattern value does not exist: The corresponding system-wide setting value is returned in the response.

Tip:  The following permissions (see Security Roles and Claims) are required to use this feature:

/certificates/enrollment/csr/ or
/certificates/enrollment/pfx/ or
/certificates/enrollment/csr_generation/

Table 523: GET Enrollment Patterns {id} Settings Input Parameters

Name Description
id

An integer indicating the Keyfactor Command reference ID for the enrollment pattern.

Use the GET Enrollment Patterns operation to retrieve a list of all the enrollment patterns to determine the enrollment pattern ID or view the ID through the Management Portal.

Table 524: GET Enrollment Patterns {id} Settings Response Data

Name

Description

Defaults

An array of objects containing the defaults resolved for the enrollment pattern. Values defined at the enrollment pattern level take precedence over system-wide defaults. ClosedShow enrollment pattern default details.

Note:  See also the Subject Format application setting, which takes precedence over enrollment defaults at both the system-wide and enrollment pattern level (see Application Settings: Enrollment Tab) but does not apply to enrollment requests done through the Keyfactor API.
Policies

An object containing the resolved enrollment pattern policy settings. Values defined at the enrollment pattern level take precedence over system-wide policies. ClosedShow enrollment pattern policy details.

Regexes

An array of objects containing the regular expressions resolved for the enrollment pattern. ClosedShow regular expression settings.

Name Description
Subject Part A string indicating the portion of the subject the regular expression applies to (for example, CN).
RegEx

A string specifying the regular expression against which data entered in the indicated subject part field (for example, CN) in the enrollment pages of the Keyfactor Command Management Portal or using an API enrollment operation will be validated.

Use the GET Enrollment Patterns Subject Parts operation to retrieve a list of all the supported subject parts.

ClosedShow regular expression examples.

Error

A string specifying the error message displayed to the user when the subject part referenced in the CSR or entered for a PFX enrollment does not match the given regular expression.

Note:  The error message already includes a leading string with the subject part (for example, Common Name: or Invalid CN provided: depending on the interface used). Your custom message follows this.
CaseSensitive A Boolean that sets the validation for the field to be case-sensitive (True or False). If the subject part does not match the expected case, the value specified by the Error parameter will display. If the CaseSensitive option is set to False, even if the regular expression contains requirements to enforce case, the case requirement will not be enforced.