360 Secure SkillHub
360 安全技能中心

Ssl Certcheck

核心功能:检测单/多主机SSL/TLS证书,显示CN、颁发者、有效期、TLS版本等信息,支持自定义过期预警阈值、端口,输出JSON格式结果,以状态标识区分证书健康状态,退出码可用于cron定时监控。典型场景:证书有效性核查、到期提醒、HTTPS安全审计。输入为主机名搭配可选参数,输出直观状态与证书详情。

rogue-agent1
rogue-agent1
热度 52.93
最近更新 2026-05-11 17:37:27
分类:安全依赖:代码执行应用场景:DevOps / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add ssl-certcheck
Metadata
name
ssl-certcheck
description
Check SSL/TLS certificates for any hostname — expiry dates, issuer, SANs, protocol version, cipher suite. Use when asked to check if a certificate is valid, see when a cert expires, inspect TLS details, or audit HTTPS security. Alerts on expired or soon-to-expire certs. Zero dependencies — pure Python ssl/socket.

certcheck 🔒

SSL/TLS certificate inspector with expiry alerts.

Commands

# Check one or more hosts
python3 scripts/certcheck.py github.com google.com openclaw.ai

# JSON output for scripting
python3 scripts/certcheck.py --json example.com

# Custom expiry warning threshold (default 30 days)
python3 scripts/certcheck.py --days 60 mysite.com

# Custom port
python3 scripts/certcheck.py -p 8443 internal.example.com

Output

  • ✅ Valid cert with >30 days remaining
  • ⚠️ Cert expiring within threshold
  • ❌ Expired or connection failed
  • Shows: CN, issuer, expiry date + days left, TLS version, cipher, SANs

Exit Codes

  • 0: All certs healthy
  • 1: One or more expired/expiring (useful for cron monitoring)