POST Monitoring Revocation Test All

The POST /Monitoring/Revocation/Test method is used to test email alerts for all configured revocation monitoring endpoints. Alerts are generated when a CRLClosed A Certificate Revocation List (CRL) is a list of digital certificates that have been revoked by the issuing Certificate Authority (CA) before their scheduled expiration date and should no longer be trusted. is expired or in the warning period as defined by the number of days configured in the Email Reminder setting or when an OCSP endpointClosed An endpoint is a URL that enables the API to gain access to resources on a server. is unreachable. For example, if you had a CRL that expired on June 30 and configured the email reminder period to 15 days before expiration, the warning status would begin for that CRL on June 15 and CRL alerts would be generated. This method returns HTTP 200 OK on a success with details about the email message generated for each alert.

Tip:  Alerts are generated when a CRL is expired or in the warning period as defined by the number of days configured in the Email Reminder setting. For example, if you had a CRL that expired on June 30 and configured the email reminder period to 15 days before expiration, the warning status would begin for that CRL on June 15 and CRL alerts would be generated. A warning will also appear for any CRL or OCSP locations that produced an error or couldn’t be resolved.

When alerts are tested or sent on a schedule, corresponding message are also written to the system event log on the server where the Keyfactor Command service runs. For testing, this is true regardless of the setting of the SendAlerts flag. Information is logged to the event log for both locations that are in a good state (e.g. CRL resolves and is not in a warning or expired state or response from OCSP) and locations that are in an error state (e.g. CRL resolves but is in the warning period or expired, CRL is expired, CRL or OCSP location does not resolve).

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

/monitoring/alerts/read/
/monitoring/alerts/test/

Important:  This endpoint has been deprecated since it only works with the legacy alerting system. It is retained for backwards compatibility, but all new development should use methods that provide support for both the legacy alerting system and the newer workflowClosed A workflow is a series of steps necessary to complete a process. In Keyfactor Command, it refers to the workflow builder, which allows you to automate event-driven tasks such as when a certificate is requested, revoked or found in a certificate store. system. See POST /Monitoring/Revocation/CRL/Test and POST /Monitoring/Revocation/OCSP/Test (POST Monitoring Revocation CRL Test and POST Monitoring Revocation OCSP Test).

Table 550: POST Monitoring Revocation Test All Input Parameters

Name Description
EvaluationDate

Required. A string indicating the evaluation date/time for the test. 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).

You can use the date to simulate running the alerts a month from now instead of today, for example, or put in a date far in the future to be sure you pick up some expiring CRLs for testing purposes.

SendAlerts

A Boolean indicating whether to send alert emails with the test (true) or not (false). The default is false.

Table 551: POST Monitoring Revocation Test All Response Data

Parameter Description
RevocationMonitoringAlerts

An array of objects containing alert details resulting from the test. ClosedShow revocation monitoring alert details.

Name Description
Subject

A string indicating the email message subject for each alert. The content of this subject is not user configurable.

Message

A string indicating the email message that will be delivered for each alert. The content of this message is not user configurable.

Recipients

An array of strings containing the recipient(s) for the alert.

AlertBuildResult A string indicating the outcome of the test (e.g. Success).
Tip:  See the Keyfactor API Reference and Utility which provides a utility through which the Keyfactor APIClosed An API is 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 workflow 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.