获取网站证书链并检查 P-256 CA 与弱公钥

GET/cert/chain

用只允许 TLS 1.2 的 ClientHello 连接主机,读取服务器发送的证书链后关闭连接,按与 POST /cert/chain 相同的规则标出 ECDSA P-256 CA 证书(Chrome 计划自 2027-03-15 起不再信任)和弱公钥。分别以 ECDSA 与 RSA 套件各握手一次,同时部署两种证书的服务器返回两条链。只连接公网单播地址和常见 TLS 端口;Cloudflare 网段内的目标 Workers 不能直连,返回 verdict 为 cloudflare;只支持 TLS 1.3 的服务器返回 tls13-only,可用 openssl s_client -showcerts 取链后 POST。

访问公开(可选 Bearer)路径兼容GET /cert/chain/{host}CLI 默认text/plain

请求参数

hostquery · 字符串必填

域名或公网 IP。域名同时作为 SNI 发送。

长度:1 ~ 253 字符路径简写:/cert/chain/{host}示例:letsencrypt.org
portquery · 整数

TLS 端口,可选 443、465、636、853、989、990、993、995、2376、4443、5061、5986、6443、6697、8443、8883、9443

默认:443示例:443
通用输出参数_format_color展开
_formatquery · 字符串

响应格式:json 或 text(plain 为 text 别名)。

可选:json | text
_colorquery · 字符串

0、false、off 或 no 关闭 ANSI 颜色。

可选:0 | false | off | no

响应体

host字符串
port整数
address字符串
serverName字符串 | null
verdict字符串
可选:critical | warning | ok | cloudflare | tls13-only | unknown
chains对象数组
verdict字符串
可选:critical | warning | ok
certificates对象数组
kind字符串
可选:certificate | csr
subject字符串
issuer字符串 | null
serialNumber字符串 | null
subjectAltNames对象数组
type字符串
可选:dns | ip | email | uri | registered-id
value字符串
signatureAlgorithm对象
name字符串
oid字符串
hash字符串 | null
publicKey对象
algorithm字符串
oid字符串
bits整数 | null
curve字符串 | null
validity对象 | null
notBefore字符串
notAfter字符串
daysRemaining整数
status字符串
可选:valid | expired | not-yet-valid
fingerprints对象
sha1字符串
sha256字符串
index整数
role字符串
可选:leaf | intermediate | root | csr
issuerIndex整数 | null
findings对象数组
code字符串
可选:p256-ca | issuer-missing | ec-small-private-key | ec-off-curve | rsa-small-factor | rsa-close-primes | rsa-small-private-exponent | rsa-invalid-exponent | rsa-short-modulus | rsa-large-exponent
severity字符串
可选:critical | warning | info
index整数
message字符串
cipher字符串 | null
pem字符串
latencyMs整数