# SSL Certificate Expiry Checker

**Use case:** 

Check when the SSL certificates of your domains expire: days left, issuer, hostname match and chain trust, with a warning for certificates that expire within 30 days. Replace the example domains with yours, and add a tracking name to see renewals between runs. Failed checks are free.

## Input

```json
{
  "domains": [
    "apify.com",
    "wikipedia.org",
    "mozilla.org"
  ],
  "expiryWarningDays": 30,
  "maxItems": 1000,
  "onlyChanged": false,
  "maxConcurrency": 5
}
```

## Output

```json
{
  "status": {
    "label": "Status",
    "format": "string"
  },
  "domain": {
    "label": "Domain",
    "format": "string"
  },
  "url": {
    "label": "URL",
    "format": "string"
  },
  "tlsStatus": {
    "label": "TLS",
    "format": "string"
  },
  "certIssuer": {
    "label": "Issuer",
    "format": "string"
  },
  "certValidTo": {
    "label": "Valid to",
    "format": "string"
  },
  "daysToExpiry": {
    "label": "Days left",
    "format": "integer"
  },
  "expiresSoon": {
    "label": "Expires soon",
    "format": "boolean"
  },
  "hostnameMatch": {
    "label": "Name match",
    "format": "boolean"
  },
  "dmarcPolicy": {
    "label": "DMARC",
    "format": "string"
  },
  "problems": {
    "label": "Problems",
    "format": "string"
  },
  "changedSinceLastRun": {
    "label": "Changed",
    "format": "boolean"
  },
  "error": {
    "label": "Error / reason",
    "format": "string"
  },
  "scrapedAt": {
    "label": "Checked at",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [DNS Lookup & SSL Certificate Checker](https://apify.com/mouadapi/dns-ssl-checker.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/mouadapi/dns-ssl-checker.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/mouadapi/dns-ssl-checker.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`).
