360 Secure SkillHub
360 安全技能中心

ctlogs.dev - Certificate Transparency Search

该 Skill 使用 ctlogs.dev 的 HTTPS API 查询公开 Certificate Transparency 日志,可按域名、组织、序列号、SHA-256 指纹或公钥查找证书与子域名,并返回签发者、有效期、SAN 和 CT 日志记录等结构化信息,支持分页和可选 API key。

分类:搜索
ctlogs
ctlogs
热度 14.42
最近更新 2026-12-03 04:28:17

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add ctlogs/ctlogs
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
ctlogs
description
Certificate Transparency search with ctlogs.dev. Find every TLS certificate and subdomain issued for a domain, the certificates of an organization, or a certificate by serial number, public key or SHA-256 fingerprint. Use it for subdomain discovery, attack-surface mapping, checking which CA issued a certificate, spotting unexpected or look-alike certificates, and certificate expiry questions. Works without an API key.
version
1.0.0
homepage
https://ctlogs.dev
metadata
{"openclaw":{"emoji":"🔐","homepage":"https://ctlogs.dev","requires":{"bins":["curl"]},"primaryEnv":"CTLOGS_API_KEY","envVars":[{"name":"CTLOGS_API_KEY","required":false,"description":"Optional ctlogs.dev API key, free at https://account.ctlogs.dev/. Without a key the API allows 200 requests per day per IP address."}]}}

ctlogs.dev: Certificate Transparency search

ctlogs.dev indexes every public Certificate Transparency (CT) log: billions of TLS certificates, searchable by domain, subdomain, organization, serial number, public key or SHA-256 fingerprint. CAs must log every publicly trusted certificate, so CT shows which certificates exist for a name, who issued them and when they expire.

All calls are plain HTTPS GET requests to https://api.ctlogs.dev/v1 and return JSON.

When to use this skill

  • "What subdomains does example.com have?" → /v1/hosts
  • "Which certificates were issued for example.com?" → /v1/domain (exact name) or /v1/subdomains (name and everything under it)
  • "Which CA issues certificates for this site?", "When does its certificate expire?" → /v1/domain, then /v1/cert for details
  • "Find certificates issued to an organization" → /v1/org
  • "Look up this serial number / fingerprint / public key" → /v1/serial, /v1/cert, /v1/spki
  • "Does this brand have a BIMI logo certificate?" → /v1/bimi

API key (optional)

The API works without a key: 200 requests per day and 100 per hour per IP address, one request at a time, first 10 pages of a query. If CTLOGS_API_KEY is set, add this header to every request:

-H "Authorization: Bearer $CTLOGS_API_KEY"

A free key (10,000 credits a month, non-commercial use) is at https://account.ctlogs.dev/. Paid plans allow commercial use. Without a key, send requests one at a time. If the API answers 429, read the error message: it says whether to wait for the previous request or that a limit was reached; in the second case tell the user where to get a free key.

Methods

{domain} is any DNS name: an apex (example.com) or a hostname (www.example.com).

Subdomains of a domain

Every distinct hostname under the domain that has a certificate valid now or expired within the last 90 days, with certificate count, first/last seen and the latest expiry:

curl -s "https://api.ctlogs.dev/v1/hosts/example.com"

Response: {"hosts":[{"host":"www.example.com","certs":2,"first_seen":"...","last_seen":"...","last_not_after":"..."}], "has_next":false, "next_cursor":""}. Wildcards appear inline as *.example.com. Paging past the first page needs an API key.

Certificates for a name

Exact hostname only:

curl -s "https://api.ctlogs.dev/v1/domain/example.com"

The name and all names under it (one row per certificate; matches lists its names under the domain):

curl -s "https://api.ctlogs.dev/v1/subdomains/example.com"

Each row has id, not_before, not_after, serial_hex, issuer (the CA organization), key_algo and san_count. Results are newest first.

Certificates of an organization

Matches the subject organization (O) exactly or as a substring. Let curl encode the query:

curl -s -G "https://api.ctlogs.dev/v1/org" --data-urlencode "q=PayPal, Inc."

Rows also carry subject_cn and domains. Without a key one organization search counts as 10 requests, so ask for a precise name first.

Serial number, fingerprint, public key

curl -s "https://api.ctlogs.dev/v1/serial/77288510df7e2b1d5b1ebc349a11db61"
curl -s "https://api.ctlogs.dev/v1/spki/01774d8f83b69231dbc81514fdcd1c6944c82844298acfef7750581ad6a2e668"

/v1/serial takes 4-42 hex characters (colons and spaces are fine). /v1/spki takes the SHA-256 of the SubjectPublicKeyInfo and lists every certificate that shares that key.

Full certificate record

curl -s "https://api.ctlogs.dev/v1/cert/000000b577288510df7e2b1d5b1ebc349a11db61"

{id} is the id from any search result, or a 64-hex SHA-256 certificate fingerprint. The record has every SAN (san_dns), the issuer DN, validity, key and signature algorithms, policy OIDs, the public key hash (pubkey_sha256) and the CT log entries (sightings). To download the certificate itself, append /final.pem or /precert.pem to the URL.

BIMI logo certificates

curl -s "https://api.ctlogs.dev/v1/bimi?q=cnn.com"

A query with a dot is a domain, otherwise an organization name. Rows carry the mark type (VMC/CMC), the trademark fields, the domains and logo_url.

Paging

Search methods return up to 100 rows. When has_next is true, repeat the same request with after=<next_cursor> added to the query string. Fetch more pages only when the user needs them.

Coverage

Every plan covers certificates valid now plus those expired within the last 90 days. A response with history_truncated: true means older certificates exist beyond that window; history back to 2013 needs a Pro plan (see https://api.ctlogs.dev/#plans).

How to answer

  • Summarize, don't dump JSON: for subdomains, list hostnames (mark wildcards); for certificates, give issuer, validity dates and names.
  • Use dates from the response as they are (UTC).
  • If a project shows these results to other people, ctlogs.dev asks for a visible link to https://ctlogs.dev.

More