POST Enrollment PFX Deploy

The POST /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)./PFXClosed A PFX file (personal information exchange format), also known as a PKCS #12 archive, is a single, password-protected certificate archive that contains both the public and matching private key and, optionally, the certificate chain. It is a common format for Windows servers./Deploy operation puts a certificate into a certificate store. It is intended to be used immediately after using the v1 POST /Enrollment/PFX operation to enroll for a PFX using the Store value for the x-certificateformat header (see POST Enrollment PFX) or the POST /Enrollment/Renew operation to renew a certificate already in a certificate store. On success, the operation returns HTTP 200 OK with  a message body containing the failed and succeeded stores.

Tip:  The following permissions (see Security Roles and Claims) are required to use this feature:
/certificate_stores/schedule/
OR
/certificate_stores/schedule/#/
AND
/certificates/enrollment/pfx/

Permissions for certificate stores can be set at the system-wide level or certificate store application level. See Application Permissions for more information.

In permission strings, # represents a specific resource identifier. In /certificate_stores/ permission strings it refers to a certificate store application ID (for example, containerId).

Tip:  The POST /Enrollment/PFX/Deploy operation must be used within 5 minutes of acquiring a certificate with the POST /Enrollment/PFX or POST /Enrollment/Renew operation as the same user who executed the certificate request. After 5 minutes, the temporary staging data needed to deploy the certificate is automatically cleared and is no longer available for deployment.

Table 494: POST Enrollment PFX Deploy Input Parameters

Name Type Description
CertificateId Body

Required in some cases. The integer for the certificate that needs to be deployed. This is returned in the response to the POST /Enrollment/PFX or POST /Enrollment/Renew request as the KeyfactorId.

Note:  For enrollments that do not require manager approval (where the certificate is issued immediately), the CertificateId is required. The RequestId may be provided but is not required in this case. For enrollments that do require manager approval (where the certificate is not issued immediately), only the KeyfactorRequestId will be returned on the enrollment and the RequestId is required for deployment.
JobTime Body A string containing the date and time when the certificate should be deployed. The date and time are expressed in ISO 8601 UTC format (YYYY-MM-DDTHH:mm:ss[.fff]Z). For example, 2026-05-19T16:23:01Z. Dates in the past will cause a management job to be created to run immediately. Dates in the future will result in a management job set to run in the future. The default is to create a management job that runs immediately.
Password Body Required in some cases. A string with a password used to secure the certificate in the certificate store. This field is required for store types that require an entry password, such as PEM stores.
RequestId Body

Required in some cases. The integer of the request ID for the certificate that needs to be deployed. This is returned in the response to the POST /Enrollment/PFX or POST /Enrollment/Renew request as the KeyfactorRequestId.

See the note under CertificateId regarding when this field is required and when it is not.

StoreIds Body

An array of strings containing the certificate store GUIDs for the stores to which the certificate should be added.

The StoreIds parameter is obsolete as of Keyfactor Command version 9.4 and has been replaced by the Stores parameter. It is still supported for backward compatibility, but no longer required.

Stores Body

Required in some cases. An array of objects indicating the certificate stores to which the certificate should be deployed with additional properties as needed based on the store type and whether an existing certificate is being overwritten with the new certificate. ClosedShow store details.

This replaces the StoresIDs and StoreTypes parameters as of Keyfactor Command version 9.4.

StoreTypes Body

An array of objects indicating the store types used with additional properties as needed based on the store type and whether an existing certificate is being overwritten with the new certificate.

The StoreTypes parameter is obsolete as of Keyfactor Command version 9.4 and has been replaced by the Stores parameter. It is still supported for backward compatibility, but is no longer required.

ClosedShow store type details.

Table 495: POST Enrollment PFX Deploy Response Data

Name Description
SuccessfulStores An array of strings containing the GUIDs for the certificates stores for which management jobs to deploy the certificate were successfully created.
Note:  Successful creation of a management job to deploy a certificate to a certificate store does not necessarily mean that a certificate will successfully be deployed to the store. A management job may fail for any number of reasons (for example, permissions on the store). Use the GET Certificates ID operation with includeLocations=true to confirm that the certificate has successfully been deployed to the target stores. The locations will not appear in the certificate record until after a certificate store inventory has been completed for each store.
FailedStores An array of strings containing the GUIDs for the certificates stores for which management jobs to deploy the certificate could not be created.