POST Certificate Stores Reenrollment
The POST /CertificateStores/Reenrollment method is used to schedule an existing certificate store for reenrollment and for ODKG requests.




This endpoint returns 204 with no content upon success. Use the GET /OrchestratorJobs/JobHistory method to check on the progress of the job after submission (see GET Orchestrator Jobs Job History).
Permissions for certificate stores can be set at either the global or certificate store container level. See Container Permissions for more information about global vs container permissions.
In addition, either the user scheduling the ODKG job or the user configured to provide authentication to the CA A certificate authority (CA) is an entity that issues digital certificates. Within Keyfactor Command, a CA may be a Microsoft CA or a Keyfactor gateway to a cloud-based or remote CA. (see HTTPS CAs - Authentication Method Tab or DCOM CAs - Authentication Method Tab)
must have enrollment permissions configured on the CA and enrollment pattern.
Table 400: POST Certificates Stores Reenrollment Input Parameters
Name | In | Description |
---|---|---|
KeystoreId | Body |
Required. The GUID of the certificate store to schedule for reenrollment. Use the GET /CertificateStores method (see GET Certificate Stores) to retrieve a list of your certificate stores to determine the GUID of the store. |
SubjectName | Body |
Required. A string containing the reenrollment subject name using X.500 format. For example: "SubjectName": "CN=websrvr14.keyexample.com,OU=IT,O=\"Key Example, Inc.\",L=Independence,ST=OH,C=US"
|
AgentGuid | Body |
Required. The GUID of the orchestrator that is registered with the certificate store. Use the GET /CertificateStores method (see GET Certificate Stores) to retrieve a list of your certificate stores to determine the GUID of the orchestrator associated with the store. |
Alias | Body |
Required. The alias of the certificate in the certificate store. |
JobProperties | Body | An object indicating the unique parameters defined for the certificate store type. The key is the name of the specific parameter from the certificate store type definition as returned in the JobProperties on the store type using the GET CertificateStoreTypes method and the value is the value that should be set for that parameter on a certificate in the certificate store. For example, for NetScaler, the key name that is optionally used to associate a certificate with a virtual server is NetscalerVserver and is returned by GET CertificateStoreTypes like so: "JobProperties": [ "NetscalerVserver" ] It can be seen in the Keyfactor Command Management Portal when editing the certificate store type in the field for Management Job Custom Fields. The setting is referenced using the following format: "JobProperties": [ {"NetscalerVserver":"MyVirtualServerName"} ] Note: The only built-in certificate store type that makes use of job properties that can be set on a certificate-by-certificate basis in the store is NetScaler, which does not support reenrollment. You may have custom certificate store types that make use of this functionality. |
CertificateAuthority | Body | A string indicating the certificate authority to which to direct the enrollment request. If this parameter is not provided, the value set in the Certificate Authority For Submitted CSRs application setting will be used (see Application Settings: Agents Tab). |
CertificateTemplate | Body |
A string indicating the certificate template to use for the enrollment request. Note: This parameter is considered deprecated and may be removed in a future release.
|
Enrollment Pattern Id | Body |
An integer indicating the enrollment pattern to use for the enrollment request. If this value is not provided, the default enrollment pattern defined for the template provided in the request (see the CertificateTemplate parameter) will be used. If neither the CertificateTemplate nor the EnrollmentPatternId is provided, the value set in the Template For Submitted CSRs application setting will be used (see Application Settings: Agents Tab. If both the CertificateTemplate and EnrollmentPatternId are provided, the settings from the enrollment pattern take precedence. If both are specified, the enrollment will fail if the Template does not match the one defined by the specified enrollment pattern. |
SANs | Body |
An object that contains the
elements for Keyfactor Command to use when generating the subject alternative name (SAN) for the certificate requested by the CSR, each of which is supplied as an array of strings. For example: Copy
|
Additional Enrollment Fields | Body | An object that provide values for any custom enrollment fields set on the enrollment pattern for the certificate template to supply custom request attributes to the CA during the enrollment process. The additionalPropx is the used-defined field name and the string is the value for the field. For example: Copy
See Enrollment Pattern Operations for more information. |
Metadata | Body |
An object that set the values for the metadata fields that will be associated with the certificate once it is in Keyfactor Command. The additionalPropx is the field name and the string is the value for the field. For example: Copy
See Certificate Metadata for more information. Note: Required metatdata fields will not be validated. An error will not be thrown if no value is entered in a required metadata field.
|
Owner Role Id | Body |
An integer indicating the Keyfactor Command reference ID of the security role assigned as the certificate owner. Note: To assign a certificate owner, one of OwnerRoleId or OwnerRoleName is required, not both. A certificate owner is required if the certificate template or system-wide settings Certificate Owner Role policy has been configured as Required.
|
Owner Role Name | Body |
A string containing the name of the security role assigned as the certificate owner. This name must match the existing name of the security role. Note: To assign a certificate owner, one of OwnerRoleId or OwnerRoleName is required, not both. A certificate owner is required if the certificate template or system-wide settings Certificate Owner Role policy has been configured as Required.
|



Was this page helpful? Provide Feedback