# Get alerts before an SSL certificate expires

**Use case:** 

Watch the TLS certificates of your domains and return a row only when one expires within 14 days, so an outage never starts with a browser warning.

## Input

```json
{
  "domains": [
    "example.com",
    "shop.example.com",
    "client-site.fr"
  ],
  "warnDays": 14,
  "checkDomainExpiry": false,
  "alertsOnly": true
}
```

## Output

```json
{
  "domain": {
    "label": "Domain",
    "format": "string"
  },
  "certDaysLeft": {
    "label": "Certificate days left",
    "format": "number"
  },
  "certValidTo": {
    "label": "Certificate valid to",
    "format": "string"
  },
  "certIssuer": {
    "label": "Certificate issuer",
    "format": "string"
  },
  "certError": {
    "label": "Certificate error",
    "format": "string"
  },
  "domainDaysLeft": {
    "label": "Domain days left",
    "format": "number"
  },
  "domainExpiresAt": {
    "label": "Domain expires at",
    "format": "string"
  },
  "hasAlert": {
    "label": "Has alert",
    "format": "boolean"
  },
  "alerts": {
    "label": "Alerts",
    "format": "array"
  },
  "checkedAt": {
    "label": "Checked at",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Bulk SSL Certificate & Domain Expiry Checker](https://apify.com/davidbenittah/ssl-domain-expiry-monitor) with a specific input configuration. Visit the [Actor detail page](https://apify.com/davidbenittah/ssl-domain-expiry-monitor) to learn more, explore other use cases, and run it yourself.