POST Certificate Authority Test
The POST /CertificateAuthority/Test method is used to validate that a connection can be made to the certificate authority 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. with the provided information. This method returns HTTP 200 OK on a success with details for the success or failure of 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. validation.
Table 276: POST Certificate Authority Test Input Parameters
Name | In | Description |
---|---|---|
id | Body | Required. An integer indicating the CA id in the Keyfactor database. |
CAType | Body |
An integer indicating the type of CA:
The default is 0. |
ExplicitCredentials | Body | A Boolean that sets whether explicit credentials are enabled for this certificate authority (true) or not (false). Set this to true for CAs that do not support integrated authentication or are not configured for integrated authentication and enter credentials in the ExplicitUser and ExplicitPassword fields. This option is only supported for Microsoft CAs. The default is false. Tip: This option is set to true primarily for Microsoft CAs where integrated authentication is not supported. Integrated authentication is generally supported for Microsoft CAs, Keyfactor CA gateways, or Keyfactor CA management gateways on servers joined to the local Active Directory forest in which Keyfactor Command is installed and any Active Directory forests in a two-way trust with this forest. |
ExplicitPassword | Body |
A string containing either null, or the password for the ExplicitUser, including: SecretValue, parameters, and provider if applicable. Copy
|
ExplicitUser | Body | A string indicating the username, in the format DOMAIN\username, for a service account user in the forest in which the Microsoft CA resides or, for non-domain-joined machines, local machine account credentials on the machine on which the CA is installed when ExplicitCredentials is set to true. Tip: This service account user needs appropriate permissions in the Microsoft CA security settings to accomplish the tasks you plan to carry out for this CA through Keyfactor Command. For example:
Note: When the ExplicitCredentials option is configured, enrollment and other tasks (e.g. revocation) is done in the context of the user configured here, not the user making the request in Keyfactor Command. This overrides the existing AD security policy used by Keyfactor Command. |
AuthCertificate | Body |
Required*. An object indicating the PKCS#12 client certificate to use to authenticate to the CA using the following format. This certificate is used to authenticate to the CA database for synchronization, enrollment and management of certificates. The certificate is provided in the following format: Copy
This parameter is required for EJBCA CAs. |
AuthCertificatePassword | Body |
Required*. An object containing password for the client certificate used to provide authentication to the CA. Copy
This parameter is required for EJBCA CAs. |
LogicalName | Body | Required. A string indicating the logical name of the certificate authority. |
HostName | Body | Required. A string indicating the DNS hostname (for DCOM configurations) or URL (for HTTPS configurations) of the certificate authority (e.g. myca.keyexample.com or https://myca.keyexample.com). |
ConfigurationTenant | Body |
Required*. A string indicating the forest root name or DNS domain name for the certificate authority (e.g. keyexample.com). This parameter is required for Microsoft CAs. |
ForestRoot | Body | A string indicating the forest root name or DNS domain name for the certificate authority (e.g. keyexample.com).
Note: This field is retained for legacy purposes and will auto-populate with the value provided in the ConfigurationTenant field. |
Table 277: POST Certificate Authority Test Response Data
Name | Description |
---|---|
Success | A Boolean that indicates whether the CA could successfully be reached (True) or not (False). |
Message | A string indicating a message about the validation test of the certificate authority. |


