{
  "name": "tls-cert-expiry-check",
  "title": "Check a TLS certificate's expiry",
  "description": "Connect to a host over TLS and fail the step if its certificate expires within the number of days you set. Passes the days left to later steps.",
  "category": "HTTP",
  "tags": [
    "http",
    "openssl"
  ],
  "latestVersion": "1.0.0",
  "versions": [
    "1.0.0"
  ],
  "parameters": [
    "host",
    "min-days",
    "port",
    "server-name"
  ],
  "images": [
    "alpine/openssl@sha256:96e53bf9b9041fdc8a33ea61356688506bbddc368c70d6e8a9acdd28475e8537"
  ],
  "url": "https://catalog.dagweave.com/api/v1/items/tls-cert-expiry-check.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/tls-cert-expiry-check/latest/template.yaml",
  "page": "https://catalog.dagweave.com/items/tls-cert-expiry-check/",
  "entrypoint": "check",
  "parameterDetails": [
    {
      "name": "host",
      "title": "Host",
      "description": "Host to connect to.",
      "type": "string",
      "required": true,
      "example": "www.example.com"
    },
    {
      "name": "min-days",
      "title": "Min days",
      "description": "Fail if the certificate has fewer than this many days left.",
      "type": "string",
      "required": false,
      "default": "14"
    },
    {
      "name": "port",
      "title": "Port",
      "description": "Port to connect to.",
      "type": "string",
      "required": false,
      "default": "443"
    },
    {
      "name": "server-name",
      "title": "Server name",
      "description": "Name to ask for with SNI. Leave blank to use the host.",
      "type": "string",
      "required": false,
      "default": ""
    }
  ],
  "imageDetails": [
    {
      "ref": "alpine/openssl@sha256:96e53bf9b9041fdc8a33ea61356688506bbddc368c70d6e8a9acdd28475e8537",
      "repository": "alpine/openssl",
      "tag": "3.5.9",
      "digest": "sha256:96e53bf9b9041fdc8a33ea61356688506bbddc368c70d6e8a9acdd28475e8537"
    }
  ],
  "versionDetails": [
    {
      "version": "1.0.0",
      "date": "2026-10-18",
      "notes": "Initial release.",
      "latest": true,
      "installable": true,
      "url": "https://catalog.dagweave.com/api/v1/items/tls-cert-expiry-check/1.0.0.json",
      "templateUrl": "https://catalog.dagweave.com/api/v1/items/tls-cert-expiry-check/1.0.0/template.yaml"
    }
  ],
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/tls-cert-expiry-check",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
