POST Certificate Stores Certificates Add
The POST /CertificateStores/Certificates/Add method is used to add a certificate to one or more certificate stores. This method returns HTTP 200 OK on a success with an array of GUIDs for the add jobs. Use the GET /OrchestratorJobs/JobHistory method to check on the progress of the job after submission (see GET Orchestrator Jobs Job History).
Permissions for certificates and certificate stores can be set at the system-wide level or with fine-grained control. You can mix these approaches—for example, applying system-wide certificate permissions alongside container-level permissions for certificate stores. See Certificate Collection Permissions and Container Permissions for more information about the differences between system-wide and more targeted permissions.
Table 437: POST Certificate Stores Certificates Add Input Parameters
Name | In | Description |
---|---|---|
CertificateId | Body | Required. An integer containing the Keyfactor Command reference ID of the certificate to be added to the certificate store(s). |
Certificate Stores | Body |
Required. An array of objects indicating the certificate store GUIDs to identify the certificate stores to which the certificate should be added and provide appropriate reference information for the certificate in the store. For example, to add to one IIS personal store and one NetScaler store without overwriting an existing certificate: Copy
|
Schedule | Body |
Required. An object indicating the inventory schedule for the add job. |
CollectionId | Body |
An optional integer that specifies the certificate collection (CollectionId) to validate whether the user has sufficient permissions to perform the action. If a CollectionId is not provided, the user must have appropriate permissions granted system-wide or via certificate store containers. Providing a CollectionId allows the system to check the user's permissions at the certificate collection level. Permissions are evaluated in the following order:
Use either ContainerId or CollectionId, not both. If both are specified, CollectionId takes precedence, and the ContainerId is ignored (defaults to 0). See Certificate Collection Permissions for more information. |



Was this page helpful? Provide Feedback