# SSL Certificate Check

> SSL Certificate Check is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.03/call, status unknown (last checked 2026-11-21).

Inspects the SSL/TLS certificate for a given hostname and returns expiry, issuer, and optionally historical certificate data

## Facts

- Endpoint: POST https://x402.agentutility.ai/ssl-certificate-check?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ssl-certificate-check-a3ee1a03
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_r8-9xzZMAFaRlvkq7vO0_

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 ssl-certificate-check-a3ee1a03 -d '<json body>'
```

Example prompt: Can you check the SSL certificate for api.stripe.com — I want to know who issued it and how many days until it expires? Also pull the last 50 historical certs for that host.

## When to prefer this

Use this endpoint when you need a quick, pay-per-call SSL certificate lookup without maintaining any infrastructure or API key subscriptions. It is ideal for agents doing one-off certificate checks, pre-deployment audits, or monitoring pipelines that need issuer and expiry data on demand. Prefer this over running openssl commands or scraping crt.sh when you need clean structured JSON output including optional certificate history.

## Known failure modes

- Host unreachable or does not exist — returns an error indicating the hostname could not be resolved
- Host has no SSL/TLS certificate (HTTP-only) — returns an error or empty certificate data
- Hostname normalization failure if scheme or port is included incorrectly — API strips these but malformed input may cause unexpected results
- Rate or payment failure — x402 payment not accepted, call rejected before processing

## How this service works

817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.

## Output

Returns a JSON object containing the hostname, the number of days remaining until the SSL certificate expires, the issuer's common name (e.g. 'Cloudflare TLS Issuing ECC CA 3'), and optionally an array of up to 50 historical certificates for the host when the history flag is set to true.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "host"
     ],
     "properties": {
      "host": {
       "type": "string",
       "description": "Hostname to inspect, e.g. 'example.com'. Normalized (scheme/port stripped)."
      },
      "history": {
       "type": "boolean",
       "description": "Include up to 50 historical certificates for the host. Optional, default false."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "host": {
       "type": "string"
      },
      "days_until_expiry": {
       "type": "integer"
      },
      "issuer_common_name": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "host": "example.com",
  "days_until_expiry": 60,
  "issuer_common_name": "Cloudflare TLS Issuing ECC CA 3"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ssl-certificate-check-a3ee1a03/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
