CertStore AddCertStoreType
CertStore AddCertStoreType
The POST /AddCertStoreType method will create a certificate store type that will be used for a custom certificate store that extends the Keyfactor Command Agent's Any Agent functionality. The parameters that can be used for this endpoint An endpoint is a URL that enables the API to gain access to resources on a server. are shown in Table 702: POST /AddCertStoreType Request Body, while the response format can be found in Table 703: POST /AddCertStoreType Response Body.
Table 702: POST /AddCertStoreType Request Body
Parameter Name | Parameter Value | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name | The name the certificate store type will have in Keyfactor Command. This parameter![]() |
||||||||||||
ShortName | The short name of the certificate store type. This parameter is required. | ||||||||||||
AddSupported | A Boolean that sets if the certificate store of this certificate store type is allowed to be added to. This parameter is required. | ||||||||||||
CreateSupported | A Boolean that sets if the certificate store of this certificate store type is allowed to be created if missing. This parameter is required. | ||||||||||||
DiscoverySupported | A Boolean that sets if the certificate store of this certificate store type is allowed to be discovered in a discovery scan. This parameter is required. | ||||||||||||
RemoveSupported | A Boolean that sets if the certificate store of this certificate store type allows certificates to be removed from it. This parameter is required. | ||||||||||||
EnrollmentSupported | A Boolean that sets if the certificate store of this certificate store type supports reenrollment. This parameter is required. | ||||||||||||
EntryPasswordSupported | A Boolean that sets if the certificate store of this certificate store type supports an entry password. This parameter is required. | ||||||||||||
PrivateKeyAllowed |
A parameter that sets requirements on the private key
|
||||||||||||
LocalStore | A Boolean that sets if the certificate store of this certificate store type requires a certificate store server. This parameter is required. | ||||||||||||
StorePasswordRequired | A Boolean that sets if the certificate store of this type requires a password. This parameter is required. | ||||||||||||
StorePathType |
The type used for the certificate store path.
|
||||||||||||
CustomAliasAllowed | A Boolean that sets whether the certificate store of this type allows a custom alias. This parameter is optional. | ||||||||||||
Powershell | A Boolean that sets whether the certificate store of this type uses PowerShell. This parameter is optional. | ||||||||||||
ServerRegistration | A Boolean that sets whether Keyfactor Command needs to prompt for credentials for each client machine that has that certificate store type. This parameter is optional. | ||||||||||||
JobProperties | A comma separated string defining properties that are required when performing management jobs on a certificate store of this type. This parameter is optional. | ||||||||||||
Properties |
A dictionary of any extra properties a certificate store of this type would need. This parameter is optional. If this property is provided, a type is required. Parameters of a property are:
|
Table 703: POST /AddCertStoreType Response Body
Parameter Name | Parameter Value | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Message | Description of the operation outcome, e.g. "The operation completed successfully". | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Result |
Status code for the operation. Will take one of the following values:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
Data |
|
Example Request
POST http://<host>/CMSApi/CertStore/1/AddCertStoreType HTTP/1.1
{ "Name": "<Type Name>", "ShortName": "<Type Short Name>", "AddSupported": true, "CreateSupported": false, "DiscoverySupported": true, "RemoveSupported": true, "EnrollmentSupported": true, "EntryPasswordSupported": true, "PrivateKeyAllowed": <integer 0-2>, "LocalStore": true, "StorePasswordRequired": true, "Powershell":false, "CustomAliasAllowed":false, "JobProperties":"<List of Job Properties>", "ServerRegistration": false, "Properties": { “<Property Name>": { "type":"<Property Type>", “DisplayName”: “<Discplay Name>” }, "<Property Name>":{ "type":"<Type>", “displayName”:”<Display Name>” "value": "<Value>" } }, "StorePathType": <Path Type> }
Example Response
Status Code: 200
{ "Message": "The operation completed successfully.”, "Result": 1, "Data": { "Name": "<Name>", "ShortName": "<Short Name>", "StoreType": <Store Type Id>, "LocalStore": true, "ServerRegistration": null, "ImportType": <Import Type>, "InventoryJobType": "<Inventory Job Type Guid>", "ManagementJobType": "<Management Job Type Guid>", "AddSupported": false, "RemoveSupported": true, "CreateSupported": false, "DiscoveryJobType": "<Discovery Job Type Guid>", "EnrollmentJobType": "<Enrollment Job Type Guid>", "InventoryEndpoint": “<Inventory Endpoint>", "Properties": { "<Property Name>": { "Type": "<Type>", "DisplayName": "<Discplay Name>", "Required": false, "Depends": null, "Value": <Value> }, "<Property Name>": { "Type": "<Type>", "DisplayName": “<Display Name> ", "Required": false, "Depends": null, "Value": "<Value>" } }, "EntryPasswordSupported": true, "StorePasswordRequired": true, "PrivateKeyAllowed": <Integer 0-2>, "StorePathType": <Store Path Type>, "CustomAliasAllowed": false, "JobProperties": "<Job Properties>" } }