/CheckSSL

:lock:Check your site's SSL status using curl & bash

Primary LanguageShellMIT LicenseMIT

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