# Expiring TLS Certificates Monitor

**Use case:** 

List the certificates of your domains that expire within a window you set, so a renewal never surprises you. Run it on a schedule and point the alert at whatever you already use - the rows carry issuer, validity dates and the names covered.

## Input

```json
{
  "domains": [
    "apify.com"
  ],
  "output": "certificates",
  "filter": "all",
  "includeSummary": true,
  "expiringWithinDays": 30,
  "replaceDefaultKeywords": false,
  "monitorMode": false,
  "monitorName": "default",
  "emitSeenInMonitor": false,
  "fetchFingerprints": false,
  "maxFingerprintsPerDomain": 25,
  "includeSubdomains": true,
  "includeExpired": true,
  "sliceLargeDomains": true,
  "maxQueriesPerDomain": 40,
  "maxMinutesPerDomain": 15,
  "maxRowsPerDomain": 0,
  "compactOutput": false,
  "requestTimeoutSecs": 70
}
```

## Output

```json
{
  "domain": {
    "label": "Domain",
    "format": "string"
  },
  "common_name": {
    "label": "Common name",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "not_before": {
    "label": "Valid from",
    "format": "string"
  },
  "not_after": {
    "label": "Valid to",
    "format": "string"
  },
  "days_to_expiry": {
    "label": "Days left",
    "format": "integer"
  },
  "issuer_organization": {
    "label": "Issuer",
    "format": "string"
  },
  "issuer_common_name": {
    "label": "Issuing CA",
    "format": "string"
  },
  "serial_number": {
    "label": "Serial",
    "format": "string"
  },
  "name_count": {
    "label": "Names",
    "format": "integer"
  },
  "matched_names": {
    "label": "Names in domain",
    "format": "array"
  },
  "is_wildcard": {
    "label": "Wildcard",
    "format": "boolean"
  },
  "is_self_signed": {
    "label": "Self-signed",
    "format": "boolean"
  },
  "sha256_fingerprint": {
    "label": "SHA-256",
    "format": "string"
  },
  "log_entries": {
    "label": "Log entries",
    "format": "integer"
  },
  "change_type": {
    "label": "Change",
    "format": "string"
  },
  "crtsh_url": {
    "label": "crt.sh",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Subdomain Finder, crt.sh Certificate Transparency Logs Search](https://apify.com/snow_leo_data/crtsh-subdomain-finder.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/snow_leo_data/crtsh-subdomain-finder.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/snow_leo_data/crtsh-subdomain-finder.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
