# Nightshift SSL/TLS Certificate Checker

> Nightshift SSL/TLS Certificate Checker is a paid API for AI agents from nightshift-x402.nightshift-labs.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-18).

Performs a live HTTPS handshake verification and fetches the latest certificate from Certificate Transparency logs for a given host, returning expiry, issuer, HSTS, and active cert details.

## Facts

- Endpoint: GET https://nightshift-x402.nightshift-labs.workers.dev/v1/domain/ssl?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nightshift-ssl-tls-certificate-checker-07bb4e6c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kZk0JFa4pzZ2wTVrGWglQ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability nightshift-ssl-tls-certificate-checker-07bb4e6c
```

Example prompt: Can you check the SSL certificate status for api.example.com — I want to know if it's reachable over HTTPS, who issued the cert, how many days are left before it expires, and whether HSTS is enabled?

## When to prefer this

Use this endpoint when you need both a live HTTPS reachability check AND Certificate Transparency log data in a single call. Prefer it over generic uptime monitors when you need issuer details, expiry countdown, wildcard coverage, and multi-cert auditing. Ideal for pre-launch site vetting, automated certificate expiry alerting pipelines, or quickly auditing an unfamiliar third-party domain's TLS posture.

## Known failure modes

- Host unreachable or DNS resolution fails — reachable:false with no certificate data
- TLS handshake fails — chainTrusted:false and failed handshake flag
- No certificate found in CT logs — missing cert flag raised
- Invalid or missing 'host' query parameter — 400 error
- Rate limit or x402 payment failure — 402 response before data is returned

## How this service works

TLS/SSL certificate check for a host: live verified HTTPS handshake (reachable, status, HSTS) plus the newest valid certificate from public Certificate Transparency logs: issuer, notBefore/notAfter, days left, covered names, wildcard, other active certs. Flags certs expiring within 14/30 days, missing certs, failed handshakes, very new certs and mixed issuers. Use for uptime/expiry monitoring or to vet a site.

## Output

Returns a JSON object with: live HTTPS reachability, HTTP status code, HSTS header value, chain trust status; the newest valid certificate's issuer, notBefore/notAfter dates, days remaining, covered names, wildcard flag; total count of active certificates; and warning flags for certs expiring within 14 or 30 days, missing certs, failed handshakes, very new certs, and mixed issuers.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "host"
     ],
     "properties": {
      "host": {
       "type": "string",
       "description": "host name, e.g. github.com or api.example.com"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "host": "github.com",
  "flags": [],
  "https": {
   "hsts": "max-age=31536000; includeSubdomains; preload",
   "status": 200,
   "reachable": true,
   "chainTrusted": true
  },
  "latestCertificate": {
   "names": [
    "github.com",
    "www.github.com"
   ],
   "issuer": "Sectigo",
   "daysLeft": 65,
   "notAfter": "2027-01-11T23:59:59Z",
   "wildcard": false
  },
  "activeCertificates": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nightshift-ssl-tls-certificate-checker-07bb4e6c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nightshift-x402.nightshift-labs.workers.dev](https://www.zero.xyz/host/nightshift-x402.nightshift-labs.workers.dev/llms.txt)
