SSL Certificate Monitor

👤 johnnywang2001 📦 v1.0.0 ⭐ 4.5 ⬇️ 840 下載
🔒 IT運維與安全 免費

📖 技能介紹

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

    本技能來自小蔥技能站7w4.net。

  • 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
  • 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