POST Certificates Import

The POST /Certificates/Import method is used to import a certificate provided in the request body into Keyfactor Command. This method returns HTTP 200 OK on a success with a message body containing information about the import.

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

/certificates/import/

Table 247: POST Certificates Import Input Parameters

Name In Description
Certificate Body Required. A string containing the base-64 encoded contents of the certificate that is to be imported into Keyfactor Command.
Password Body Required*. A string containing the password used to decrypt the imported PFX. This field is required if a PFX certificate is provided in the Certificate field.
Metadata Body

An object containing the certificate metadata that will be associated with the certificate once it is imported. This is provided as a set of key value pairs with the metadata field name in the key and the value in the value. For example:

"Metadata": {
   "AppOwnerFirstName": "John",
   "AppOwnerLastName": "Smith"
}
StoreIds Body An array of strings indicating the certificate store GUIDs that the imported certificate will be installed into.
Store Types Body An array of objects indicating the information for the specified store IDs. ClosedShow store type details.
Schedule Body A string containing the time the imported certificate should be scheduled to be installed into the certificate store. The date and time should be given using the ISO 8601 UTC time format YYYY-MM-DDTHH:mm:ss.000Z (e.g. 2023-11-19T16:23:01Z).

Table 248: POST Certificates Import Response Data

Name Description

Import Status

An integer indicating the status of the import job indicating, for example, whether the certificate was newly created in Keyfactor Command or already existed in Keyfactor Command and was just updated based on provided private key, metadata, or location information.

Invaild Key Stores An array of objects indicating which key store items failed with some information. ClosedShow key store details.
Job Status An integer indicating the state of all certificate store jobs.
Tip:  See the Keyfactor API Reference and Utility which provides a utility through which the Keyfactor APIClosed A set of functions to allow creation of applications. Keyfactor offers the Keyfactor API, which allows third-party software to integrate with the advanced certificate enrollment and management features of Keyfactor Command. endpoints can be called and results returned. It is intended to be used primarily for validation, testing and workflowClosed A workflow is a series of steps necessary to complete a process. In the context of Keyfactor Command, it refers to the workflow builder, which allows you automate event-driven tasks when a certificate is requested or revoked. development. It also serves secondarily as documentation for the API. The link to the Keyfactor API Reference and Utility is in the dropdown from the help icon () at the top of the Management Portal page next to the Log Out button.