百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

certgraph

> 编程语言
开源

开源 智能工具来爬行证书的图形

377 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

开源 智能工具来爬行证书的图形

CertGraph

A tool to crawl the graph of certificate Alternate Names

CertGraph crawls SSL certificates creating a directed graph where each domain is a node and the certificate alternative names for that domain's certificate are the edges to other domain nodes. New domains are printed as they are found. In Detailed mode upon completion the Graph's adjacency list is printed.

Crawling defaults to collecting certificate by connecting over TCP, however there are multiple drivers that can search Certificate Transparency logs.

This tool was designed to be used for host name enumeration via SSL certificates, but it can also show you a "chain" of trust between domains and the certificates that re-used between them.

Blog post with more information

Usage

…

Drivers

CertGraph has multiple options for querying SSL certificates. The driver is responsible for retrieving the certificates for a given domain. Currently there are the following drivers:

  • http this is the default driver which works by connecting to the hosts over HTTPS and retrieving the certificates from the SSL connection

  • smtp like the http driver, but connects over port 25 and issues the starttls command to retrieve the certificates from the SSL connection

  • censys this driver searches Certificate Transparency logs via censys.io. No packets are sent to any of the domains when using this driver. Requires Censys API keys

  • crtsh this driver searches Certificate Transparency logs via crt.sh. No packets are sent to any of the domains when using this driver

Example

…

The above output represents the adjacency list for the graph for the root domain eff.org. The adjacency list is in the form: Node Depth Status Cert-Fingerprint

Releases

Pre-compiled releases are automatically built and uploaded to the releases GitHub page using GitHub Actions. Releases are available for multiple platforms including Linux, macOS, and Windows.

CI/CD

This project uses GitHub Actions for continuous integration and deployment:

  • Tests and Linting: Automatically runs tests and linting on every push and pull request
  • Docker Images: Automatically builds and pushes Docker images to GitHub Container Registry on version tags
  • Releases: Automatically creates releases with pre-compiled binaries for multiple platforms using GoReleaser

Docker

CertGraph is available as Docker image on the GitHub Container Registry

GitHub Container Registry:

bash
docker run --rm -it ghcr.io/lanrat/certgraph example.com

Example output:

bash
example.com
www.example.net
www.example.org
www.example.com
example.org
example.net
example.edu
www.example.edu

Linux Distributions

  • BlackArch
  • Kali Linux

Compiling

To compile certgraph you must have a working Go 1.23 or newer compiler on your system. To compile for the running system compilation is as easy as running make

bash
certgraph$ make
go build -o certgraph certgraph.go

Alternatively you can use go install to install with this one-liner:

bash
go install github.com/lanrat/certgraph@latest

Development

For development, you can build and test the project using the provided Makefile:

bash
# Build the binary
make

# Run tests
make test

# Run linting
make lint

# Build Docker image locally
make docker

Web UI

A web UI is provided in the docs folder and is accessible at the github pages url https://lanrat.github.io/certgraph/, or can be run from the embedded web server by calling certgraph --serve 127.0.0.1:8080.

The web UI takes the output provided with the -json flag. The JSON graph can be sent to the web interface as an uploaded file, remote URL, or as the query string using the data variable.

Example 1: eff.org

Example 2: google.com

Example 3: whitehouse.gov

BygoneSSL detection

Self Detection

CertGraph can be used to detect BygoneSSL DoS with the following options. CT-DRIVER can be any Certificate Transparency capable driver. Provide all known input domains you own. If any domains you do not own are printed, then you are vulnerable.

bash
certgraph -depth 1 -driver CT-DRIVER -ct-subdomains -cdn -apex [DOMAIN]...

Bug Bounty

If you want to find a vulnerable site that has a bug bounty, certgraph can be used with the following options and any driver. But you will have better luck with a non Certificate Transparency driver to ensure that the certificates in question are actually in use

bash
certgraph -cdn -dns -apex [DOMAIN]...

And domains that print * Missing DNS for have vulnerable certificates that should be rotated.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Go

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言