Crtsh

v0.2.1
io.github.pipeworx-io/crtsh Checked 38 minutes ago Published 1 month ago

crt.sh — Certificate Transparency log search

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

crtsh_search_domain

"Find subdomains of [domain]" / "what TLS certificates exist for [domain]" / "certificate transparency for [host]" / "who issued the cert for [site]" — every certificate ever logged to the public Certificate Transparency logs for a domain and (by default) its subdomains, from crt.sh. AUTHORITATIVE for subdomain discovery and certificate inventory: CAs are required to log every certificate they issue, so this finds hosts that appear in no DNS zone transfer and no web crawl. Returns issuer, validity window, serial number and the full SAN list per certificate, plus a de-duplicated list of every…

ParameterTypeDescription
domain *stringDomain to search, e.g. "cloudflare.com". Do not include a scheme or a leading wildcard.
exclude_expiredbooleanReturn only certificates that have not passed their notAfter date. Default false (full history).
include_subdomainsbooleanSearch "%.domain" (every subdomain) as well as the domain itself. Default true.
limitnumberMaximum certificates to return, 1-1000. Default 100. crt.sh returns newest-first once sorted here.

crtsh_certificate

"Show me certificate [crt.sh id]" / "get the PEM for cert [id]" / "which certificate has serial [hex]" — fetch one logged certificate from crt.sh by its crt.sh id or by its hex serial number. Returns the PEM body plus the logged metadata (issuer, common name, SANs, validity window). Use after crtsh_search_domain to pull the actual certificate for inspection, or to identify a certificate you only have a serial number for (e.g. from a CA revocation notice or a TLS error log).

ParameterTypeDescription
idnumbercrt.sh certificate id, as returned in the "id" field by crtsh_search_domain.
include_pembooleanInclude the base64 PEM body. Default true.
serialstringCertificate serial number in hex, e.g. "06b6e2677b20b8aa16af09f498667be23ead". Either id or serial is required.