Giter Club home page Giter Club logo

get_all_cert_info's Introduction

证书失效会发生啥?

  • 浏览器报不可信,页面被拦截
  • 生产事故,运维绩效扣光 - -

大厂也会犯的低级失误?

  • 苹果15年1月ChinaCache节点证书到期,未更新证书,导致国内用户appstore访问失败: 戳我
  • 乌龙!火狐浏览器忘记续费证书导致所有扩展被禁用: 戳我

get_dns_info.py是什么?

  • 域名多、证书多,人工收集困难,漏续费后果严重。此脚本一键收集并生成html格式报表

通过域名提供商(DNSpod)API获取所有域名

解析记录

筛选A记录与CNAME,去重

Curl获取证书详情、提供商、过期时间等信息

生成HTML报告

环境

  • python3
  • requests 库

使用方法

  • DNSpod创建Token,替换脚本ID、token 截图
# 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 = {
    地点  : "上海",
    职业  : "运维"
  }

get_all_cert_info's People

Contributors

fcatat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.