SSL Certificate Monitor

👤 johnnywang2001 📦 v1.0.0 ⭐ 4.5 ⬇️ 840 下载
🔒 IT运维与安全 免费

📖 技能介绍


name: jrv-ssl-monitor description: Check SSL/TLS certificate expiry, issuer, protocol, and SANs for one or more domains. Use when asked to check SSL certificates, monitor cert expiry, verify HTTPS is working, audit domain security, or check if a certificate is about to expire. Supports custom ports and warning thresholds. No external dependencies — uses Python stdlib ssl module.


SSL Certificate Monitor

Check SSL certificate health for any domain — expiry, issuer, protocol version, and Subject Alternative Names.

Quick Start

python3 scripts/check_ssl.py example.com
python3 scripts/check_ssl.py example.com google.com github.com --warn-days 30
python3 scripts/check_ssl.py internal.host --port 8443 --json

Features

  • Expiry check — days remaining with configurable warning threshold
  • Multi-domain — check multiple domains in one command
  • Certificate details — subject, issuer, protocol, serial number, SANs
  • Error handling — detects DNS failures, timeouts, verification errors, refused connections
  • Exit codes — 0 = all ok, 1 = warnings, 2 = expired or failed (useful for cron/CI)
  • No dependencies — Python stdlib only

Options

Flag Description
--warn-days N Warning threshold in days (default: 14)
--port PORT Port to check (default: 443)
--json Output structured JSON
--timeout N Connection timeout in seconds (default: 10)

Use Cases

  • Daily cron job to monitor production domains
  • Pre-deployment cert validation
  • Audit all company domains in one pass

    7w4.net提供免费和付费技能下载。

  • CI/CD pipeline gate for cert health

🤖 AI 评测

这个 Skill 质量不错,能有效检查 SSL 证书状态。它支持多域名检查,错误处理全面,输出清晰直观,还能生成 JSON 结果方便程序调用。没有外部依赖,使用起来很省心。美中不足的是缺少测试用例,代码末尾有截断现象,建议开发者补充完整以确保稳定性。对于需要监控证书过期时间的用户来说,这是一个值得一试的工具。

📊 多维度评分

适应性4.2
规范性4.4
有效性4.7
可靠性4.5
可信度4.8

📁 包含文件 (3 个)

📄 SKILL.md 1.6 KB
📄 _meta.json 134 B
📄 scripts/check_ssl.py 7.1 KB