# Forest Infra – TLS Certificate Expiry Checker

> Forest Infra – TLS Certificate Expiry Checker is a paid API for AI agents from http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Returns the public TLS certificate validity window and remaining lifetime for a given public hostname on port 443.

## Facts

- Endpoint: POST https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/tls/expiry?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forest-infra-tls-certificate-expiry-checker-bf74fbbd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7bvCeMWH0nVrby0UfVAdC

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 forest-infra-tls-certificate-expiry-checker-bf74fbbd -d '<json body>'
```

Example prompt: Check when the TLS certificate for api.stripe.com expires — I need to know the validity window and how many days are left before it runs out.

## When to prefer this

Choose this endpoint when you need a fast, cheap, focused check on TLS certificate expiry for a public hostname — specifically the validity window and days remaining — without needing cipher analysis, vulnerability scanning, or full SSL labs-style reports. Ideal for lightweight monitoring workflows, pre-deployment checks, and third-party dependency audits where only expiry data matters.

## Known failure modes

- Hostname does not resolve (DNS failure) — returns error indicating unresolvable host
- Host is not reachable on port 443 — returns connection timeout or refused error
- Hostname matches private/internal IP range — rejected, only public hosts supported
- Invalid hostname format (fails regex pattern) — returns validation error
- Certificate already expired — may return zero or negative remaining lifetime
- SNI mismatch or self-signed cert — may return an error or incomplete data

## How this service works

Return only the public certificate validity window and remaining lifetime for TLS port 443. It does not scan ciphers, vulnerabilities or private hosts. Base mainnet USDC

## Output

Returns the public TLS certificate's validity window (not-before and not-after dates) and the remaining lifetime in days for the specified public hostname on port 443. Does not include cipher details, vulnerability scanning, or private host results.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "host": {
   "type": "string",
   "pattern": "^[a-z0-9.-]+$",
   "maxLength": 253,
   "description": "Public DNS hostname to resolve."
  },
  "port": {
   "const": 443,
   "description": "TLS port to probe; only the public TLS endpoint is supported."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forest-infra-tls-certificate-expiry-checker-bf74fbbd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run](https://www.zero.xyz/host/http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/llms.txt)
