- 浏览器报不可信,页面被拦截
- 生产事故,运维绩效扣光 - -
- 域名多、证书多,人工收集困难,漏续费后果严重。此脚本一键收集并生成html格式报表
通过域名提供商(DNSpod)API获取所有域名
解析记录
筛选A记录与CNAME,去重
Curl获取证书详情、提供商、过期时间等信息
生成HTML报告
- python3
- requests 库
# https://www.dnspod.cn/console/user/security创建API Token
ID = 111111 # 替换
Token = 'e96527a8944f0123ww9edscsf4d7' # 替换
# 仅汇总了域名总数与使用ssl证书量,可按需添加
domain_sum = len(get_domains())
use_ssl_record_sum = len(all_record)
- python get_dns_info.py 运行后生成report-new.html
fcatat = {
地点 : "上海",
职业 : "运维"
}