# SSL Check API

> JSON API that reports whether a public hostname supports hybrid ML-KEM key exchange, with certificate and per-endpoint details.
>
> Web page: https://pq.info/ssl-check/ · Index of all pages: https://pq.info/llms.txt

Checks a public hostname through the Qualys SSL Labs API and returns a normalized result. No key is needed. Cross-origin requests are not enabled; call it from a server or a command line.

```sh
curl -s "https://pq.info/api/ssl-check?domain=example.com"
```

## Request

`GET https://pq.info/api/ssl-check?domain=<hostname>`

`domain` is a bare public hostname. A scheme or path is stripped. An invalid hostname returns HTTP 400.

## Response

The `status` field says which of three shapes you have.

**`scanning`**: a scan has started and is not finished. Wait about 6 seconds and send the same request again. A fresh scan can take a minute or more; give up after about five.

```json
{ "status": "scanning", "domain": "example.com" }
```

**`error`**: the hostname did not resolve, the scan failed, or the scan service is unavailable. `error` is a message for a person.

```json
{ "status": "error", "error": "Hostname could not be resolved: example.invalid" }
```

**`ready`**: the result. The values below are an example.

```json
{
  "status": "ready",
  "domain": "example.com",
  "pq": true,
  "pqPartial": false,
  "pqGroups": ["X25519MLKEM768"],
  "grade": "A",
  "endpoints": [
    { "ip": "203.0.113.10", "grade": "A", "pq": ["X25519MLKEM768"], "classical": ["x25519", "secp256r1"], "tls": ["TLS 1.2", "TLS 1.3"], "note": null }
  ],
  "cert": {
    "issuedBy": "Example CA", "subject": "example.com",
    "validFrom": "2026-11-01T00:00:00.000Z", "validTo": "2027-01-30T00:00:00.000Z", "daysLeft": 58,
    "altNames": 2, "keyAlg": "EC", "keySize": 256, "sigAlg": "SHA256withECDSA"
  }
}
```

| Field | Meaning |
|-------|---------|
| `pq` | At least one endpoint supports a post-quantum (ML-KEM) key exchange group. |
| `pqPartial` | Some tested endpoints support one and some do not. Treat as a failure to fix. |
| `pqGroups` | The post-quantum groups seen across all endpoints. |
| `grade` | The lowest-ranked SSL Labs grade among endpoints, or `null`. It measures general TLS configuration, not post-quantum readiness. |
| `endpoints[]` | One entry per IP address: its groups (`pq`, `classical`), TLS versions, grade and any scanner note. |
| `cert` | The leaf certificate. An RSA or EC key here is expected today and does not make key exchange unsafe; see https://pq.info/systems/pki.md. |

## Limits

- Ready results are cached for 30 minutes.
- Supported groups are what the server accepts, not what any one client negotiates. To see a negotiated group, run the probes in https://pq.info/audit.md.
- Only public hostnames on port 443. For internal endpoints, SSH, or databases, use the probes.
- Scans are run by SSL Labs and count against a shared budget. Check hostnames you have a reason to check, one at a time.
