# SSL Certificate Inspector

> SSL Certificate Inspector 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-17).

Returns SSL/TLS certificate details for a given hostname, including expiry days remaining and issuer information, with optional historical certificate lookup.

## Facts

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

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-inspector-bbaba062 -d '<json body>'
```

Example prompt: Can you check the SSL certificate for api.stripe.com and tell me how many days until it expires and who issued it?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call lookup of SSL/TLS certificate metadata for any hostname without setting up monitoring infrastructure. Ideal for one-off checks, pre-deployment validation, or scripted expiry alerts. Prefer this over full TLS scanning tools when you only need expiry timing and issuer identity, not the full certificate chain or cipher suite analysis.

## Known failure modes

- Invalid or unresolvable hostname returns an error
- Host with no SSL certificate (HTTP-only) may return null or error
- Network timeout if the target host is unreachable
- Malformed hostname input (e.g. with scheme or port included) may fail — normalize first
- History flag set but no historical records available returns empty list

## 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/TLS certificate expires, and the common name of the certificate issuer (e.g. 'Cloudflare TLS Issuing ECC CA 3'). When history is requested, up to 50 historical certificate records for the host are also included.

## 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-inspector-bbaba062/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)
