# Bulk SSL Certificate Checker - Expiry, Issuer, Chain & TLS (`wood-between-studio/ssl-certificate-checker`) Actor

Check SSL/TLS certificates for hundreds of domains at once: days until expiry, issuer, SANs, hostname match, chain validity, TLS version, cipher and HSTS, with an A-F grade. $0.80 per 1,000 hosts, no start fee.

- **URL**: https://apify.com/wood-between-studio/ssl-certificate-checker.md
- **Developed by:** [Wood Between Studio](https://apify.com/wood-between-studio) (community)
- **Categories:** Developer tools, SEO tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.80 / 1,000 host checkeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Bulk SSL Certificate Checker: Expiry Dates, Issuer, Chain & TLS for Many Domains

**Check the SSL/TLS certificate of hundreds of domains in one run** and get one clean row per host: days until expiry, issuer, valid-from/valid-to dates, SANs, hostname match, chain trust, TLS version, cipher, HTTP/2, key type and HSTS, plus an **A-F grade** and a plain-English list of problems.

### Why use it?

- **Never miss an expiry.** `daysLeft`, `expired` and `expiresSoon` (your own warning window) for every host. Schedule it daily or weekly and filter on `expiresSoon`.
- **Catches real misconfigurations.** Hostname mismatch, self-signed, untrusted or incomplete chain, expired certs, old TLS 1.0/1.1, weak RSA keys, missing HSTS.
- **Any port.** `mail.example.com:993`, `example.com:8443` and so on.
- **Cheap and fair.** $0.80 per 1,000 hosts, **no start fee**. Unreachable hosts are free.

### Use cases

- Certificate expiry monitoring for agencies, MSPs and IT teams with many client sites
- Security and compliance audits (TLS version, HSTS, chain)
- Domain portfolio and acquisition due diligence
- Checking a list of subdomains after a migration or CDN change

### Input

| Field | Default | Notes |
|---|---|---|
| `domains` | (required) | Domains, hostnames or URLs; add `:port` for non-443 |
| `expiryWarningDays` | `30` | Flags certs expiring within this many days |
| `checkHsts` | `true` | One HEAD request to read Strict-Transport-Security |
| `maxConcurrency` | `10` | |

```json
{ "domains": ["github.com", "wikipedia.org", "expired.badssl.com"], "expiryWarningDays": 21 }
```

### Output (one row per host)

```json
{
  "host": "github.com", "port": 443, "status": "success", "grade": "A",
  "issuer": "Sectigo Limited", "validTo": "2027-01-27T23:59:59.000Z", "daysLeft": 75,
  "expired": false, "expiresSoon": false, "hostnameMatch": true, "chainValid": true,
  "sans": ["github.com", "www.github.com"], "tlsVersion": "TLSv1.3", "cipher": "TLS_AES_128_GCM_SHA256",
  "http2": true, "keyType": "EC", "hsts": true, "hstsMaxAge": 31536000, "problems": []
}
```

Grades: **A** all good; **B** expiring within your window or no HSTS; **C** old TLS, expiring within 7 days or weak key; **F** expired, wrong hostname or untrusted chain.

### Pricing

Pay per event: **$0.0008 per host checked** ($0.80 per 1,000). Hosts that can't be reached or don't speak TLS are not charged.

### Notes

Only the public certificate a server presents during a normal TLS handshake is read. No vulnerability scanning or intrusive tests. Built by Wood Between Studio. Questions or a feature you need? Open an issue on the Issues tab.

# Actor input Schema

## `domains` (type: `array`):

Hostnames, domains or https URLs. Add :port for non-443 ports (e.g. mail.example.com:993).

## `expiryWarningDays` (type: `integer`):

Flag certificates that expire within this many days.

## `checkHsts` (type: `boolean`):

Make one HTTPS request to read the Strict-Transport-Security header.

## `maxConcurrency` (type: `integer`):

Hosts checked in parallel.

## Actor input object example

```json
{
  "domains": [
    "github.com",
    "wikipedia.org",
    "expired.badssl.com"
  ],
  "expiryWarningDays": 30,
  "checkHsts": true,
  "maxConcurrency": 10
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "domains": [
        "github.com",
        "wikipedia.org",
        "expired.badssl.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("wood-between-studio/ssl-certificate-checker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "domains": [
        "github.com",
        "wikipedia.org",
        "expired.badssl.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("wood-between-studio/ssl-certificate-checker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "domains": [
    "github.com",
    "wikipedia.org",
    "expired.badssl.com"
  ]
}' |
apify call wood-between-studio/ssl-certificate-checker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,wood-between-studio/ssl-certificate-checker"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/hwxWPOBXlJYbf57NL/builds/MQjK0zKgIp3BS87Ht/openapi.json
