# SSL Certificate Checker

> SSL Certificate Checker is a paid API for AI agents from x402-v2-mint-ssl-cert-check.vercel.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-20).

Performs a TLS handshake against a host and port to retrieve and validate SSL certificate details including validity dates, SANs, issuer, serial number, and days remaining.

## Facts

- Endpoint: POST https://x402-v2-mint-ssl-cert-check.vercel.app/v1/ssl-cert-check?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ssl-certificate-checker-2931d60c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__m9QXjExta81g3JYIDhBO

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-checker-2931d60c -d '<json body>'
```

Example prompt: Can you check the SSL certificate for api.stripe.com on port 443 and tell me how many days are left before it expires, who issued it, and what SANs it covers?

## When to prefer this

Choose this endpoint when you need to programmatically inspect SSL/TLS certificate metadata — especially expiry dates, SANs, and issuer information — for any arbitrary host and port without installing local tooling. Ideal for automated monitoring pipelines, pre-deployment checks, or incident investigation where you need structured cert data returned as JSON. Prefer this over manual openssl commands or browser certificate inspectors when the result needs to be parsed by an agent or integrated into a workflow.

## Known failure modes

- Connection timeout if host is unreachable within timeout_s (max 15s)
- TLS handshake failure if server does not support TLS or certificate is severely malformed
- Invalid hostname format or unresolvable DNS returns an error
- Port out of range (1–65535) causes a validation error
- Expired certificate may still return details but ok=false
- Payment not processed causes the request to be rejected

## How this service works

TLS handshake for host[:port]; notBefore/notAfter, SANs, issuer, serial, days-left. Fail closed.

## Output

A JSON object indicating whether the certificate check succeeded (ok: true/false), the skill name, charge status, and a summary. When successful, includes the certificate's notBefore and notAfter dates, days remaining until expiry, Subject Alternative Names, issuer details, and serial number. Fails closed on errors — i.e., returns a failure state rather than an ambiguous result.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "sni": {
   "type": "string",
   "maxLength": 253,
   "description": "Optional SNI override"
  },
  "host": {
   "type": "string",
   "maxLength": 253,
   "description": "Hostname (no scheme)"
  },
  "port": {
   "type": "integer",
   "default": 443,
   "maximum": 65535,
   "minimum": 1
  },
  "hostname": {
   "type": "string",
   "maxLength": 253
  },
  "timeout_s": {
   "type": "number",
   "default": 8,
   "maximum": 15,
   "minimum": 1
  },
  "request_id": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "skill": "ssl-cert-check",
  "charged": true,
  "summary": "ok"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ssl-certificate-checker-2931d60c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-v2-mint-ssl-cert-check.vercel.app](https://www.zero.xyz/host/x402-v2-mint-ssl-cert-check.vercel.app/llms.txt)
