Query Details

Certificates That Will Expire In The Next 90 Days

Query

// Use Case: Generating a list of expiring SSL certificates for proactive renewal within the next 90 days.
Certificate
| project SubjectName, ValidFromDateTime, ValidToDateTime, CommonName
| where ValidToDateTime > now() and ValidToDateTime < now() + 90d

Explanation

This query is designed to identify SSL certificates that are set to expire within the next 90 days. It works by:

  1. Accessing a database or table named "Certificate" that contains information about SSL certificates.
  2. Selecting specific columns of interest: SubjectName, ValidFromDateTime, ValidToDateTime, and CommonName.
  3. Filtering the results to include only those certificates whose expiration date (ValidToDateTime) is in the future but within the next 90 days from the current date and time.

In simple terms, this query helps you find SSL certificates that need to be renewed soon, allowing you to take action before they expire.

Details

Ugur Koc profile picture

Ugur Koc

Released: December 13, 2024

Tables

Certificate

Keywords

Certificate

Operators

projectwherenowand+

Actions

GitHub