Skip to main content

Certificate Audit Solution

Purpose​

The purpose of this solution is to pull meaningful certificate information into Automate to be monitored, reported on, or stored for periodic checkups in a dataview.

Update Notice 19-Sept-2024​

New Content:

Modified Content:

Modifications:

Note:

Associated Content​

Auditing​

ContentTypeFunction
Certificates (My) - Local Machine - AuditScriptGathers, sorts, and imports SSL certificate information into a custom table in the database.
plugin_proval_certsCustom TableCustom table created to hold SSL certificate information.
Local Machine Certificate AuditInternal MonitorDetects computers where Certificates (My) - Local Machine - Audit has not been executed in the past 7 days.
△ Custom - Local Machine Certificate AuditAlert TemplateExecutes the Certificates (My) - Local Machine - Audit script against the computers detected by the Local Machine Certificate Audit internal monitor.
SSL Certificate AuditDataviewDisplays a comprehensive list of all certificates found with expiration status.

Alerting​

ContentTypeFunction
Certificate Expiration < 30 DaysInternal MonitorThis monitor checks the plugin_proval_certs table for any SSL certificates that have an expiration date of less than 30 days.
Ticket Creation - ComputerScriptCreates a ticket using the alerting information from the monitor and adds more detailed information to the ticket.
△ Custom - Ticket Creation - ComputerAlert TemplateExecutes the Ticket Creation - Computer script.

Implementation​

  1. Import/Update the following content using the Prosync plugin:
    For Auditing Only:

    For Alerting:

  2. Reload the system cache:
    Reload Cache

  3. Execute the Certificates (My) - Local Machine - Audit script against any online Windows computer to create the plugin_proval_certs custom table.
    Execute Script

  4. Skip this step for new implementations.
    Run this SQL query from a RAWSQL monitor set to remove the script's schedule:

    DELETE FROM groupscripts WHERE scriptid = (SELECT scriptid FROM lt_scripts WHERE scriptGUID = '4f7fd3ff-3732-11e9-b7e5-005056a614c6')
  5. Configure the auditing solution as outlined below:
    Navigate to Automation → Monitors within the CWA Control Center and set up the following:

    • Internal Monitor - Local Machine Certificate Audit
      • Alert Template: △ Custom - Local Machine Certificate Audit
      • The monitor should target the following groups:
        • Service Plans.Windows Servers.Server Roles.Windows Messaging Servers
        • Service Plans.Windows Servers.Server Roles.Windows Remote Access Servers
        • Service Plans.Windows Servers.Server Roles.Windows Web/Proxy Servers
        • Service Plans.Windows Servers.Server Roles.Windows Database Servers
        • Service Plans.Windows Servers.Server Roles.MSP Specific Servers
          Target Groups
      • Right-click and select "Run Now" to start the monitor.

If Requested​

  1. Please ensure that the alerting solution is implemented only after the consultant has confirmed it.
    Configure the alerting solution as outlined below:
    Navigate to Automation → Monitors within the CWA Control Center and set up the following:

Changelog​

2025-04-10​

  • Initial version of the document