Git Product home page Git Product logo

checkssl's Introduction

CheckSSL

🔒Check your site's SSL status

Author Travis License

Demo

https://lab.skk.moe/ssl

Usage

First clone this repo:

$ git clone https://github.com/SukkaW/CheckSSL.git
$ cd CheckSSL

Then give script permission to execute:

$ chmod +x checker.sh

Run checker.sh with your domain, just like

# Example
$ ./checker.sh skk.moe www.skk.moe blog.skk.moe lab.skk.moe

You will get a ct.json file at output directories.

Output

Here is an exmaple of ct.json:

[{
	"domain": "skk.moe",
	"subject": "C=US; ST=CA; L=San Francisco; O=CloudFlare, Inc.; CN=sni.cloudflaressl.com",
	"start": "2018-09-14 00:00:00 GMT",
	"expire": "2019-09-14 12:00:00 GMT",
	"issuer": "C=US; ST=CA; L=San Francisco; O=CloudFlare, Inc.; CN=CloudFlare Inc ECC CA-2",
	"status": "Valid",
	"statuscolor": "success",
	"check": "2018-10-20 15:23:54",
	"remain": "328"
}, {
	"domain": "www.skk.moe",
	"subject": "C=US; ST=CA; L=San Francisco; O=CloudFlare, Inc.; CN=sni.cloudflaressl.com",
	"start": "2018-09-17 00:00:00 GMT",
	"expire": "2019-09-17 12:00:00 GMT",
	"issuer": "C=US; ST=CA; L=San Francisco; O=CloudFlare, Inc.; CN=CloudFlare Inc ECC CA-2",
	"status": "Valid",
	"statuscolor": "success",
	"check": "2018-10-20 15:23:54",
	"remain": "331"
}]
  • domain - The domain your check
  • subject - Details of your SSL
  • start - When your ssl issued
  • expire - When your ssl expired
  • issuer - Details of your CA's chain
  • status - Could be Valid, Invalid, Soon Expired(if it is less than 10d before expired), Expired
  • statuscolor - success for Valid, warning for Soon Expired and error for Expired or Invilid

you can work with css framework (such as Bootstrap) using class="text-${statuscolor}"

  • remain - How many days before your ssl expired

Author

CheckSSL © Sukka, Released under the MIT License.

Personal Website · Blog · GitHub @SukkaW · Telegram Channel @SukkaChannel

checkssl's People

Contributors

sukkaw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

checkssl's Issues

执行出错

[root@VM_44_86_centos CheckSSL]# ./checker.sh lenget.com
date: invalid date ‘* \texpire date: Mar 29 06:48:39 2019 GMT’
./runcheck.sh: line 39: [: <: unary operator expected

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.