Go to file
2022-03-19 21:49:43 +08:00
.dockerignore Bump dependencies 2020-07-23 00:01:41 +08:00
.drone.yml build with golang:1.17-alpine3.15 2022-01-30 17:47:59 +08:00
.gitignore Ignore vendor/ 2020-05-10 16:11:01 +08:00
config.go Make it possible to change timeout value 2020-05-10 17:12:16 +08:00
Dockerfile build with golang:1.17-alpine3.15 2022-01-30 17:47:59 +08:00
go.mod Bump dependencies and cleanup go.{mod,sum} 2022-03-19 21:49:37 +08:00
go.sum Bump dependencies and cleanup go.{mod,sum} 2022-03-19 21:49:37 +08:00
hosts.yaml Simplified README.md 2020-05-10 17:20:26 +08:00
LICENSE Update year 2022 2022-03-19 21:49:43 +08:00
main.go Make it possible to change timeout value 2020-05-10 17:12:16 +08:00
README.md Bump dependencies and cleanup go.{mod,sum} 2022-03-19 21:49:37 +08:00
utils.go Bump dependencies and cleanup go.{mod,sum} 2022-03-19 21:49:37 +08:00

SSL certificate checker written in golang

GoDoc Go Report Card GitHub go.mod Go version

Docker Stars Docker Pulls

Usage

docker run --rm -v $(pwd)/hosts.yaml:/opt/hosts.yaml:ro -it guessi/ssl-certs-checker --help

NAME:
   SSL Certificate Checker - check SSL certificates at once

USAGE:
   ssl-certs-checker [global options] command [command options] [arguments...]

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --config value, -C value   config file
   --timeout value, -t value  dialer timeout in second(s) (default: 5)
   --help, -h                 show help (default: false)

Sample Output

docker run --rm -v $(pwd)/hosts.yaml:/opt/hosts.yaml:ro -it guessi/ssl-certs-checker --config hosts.yaml

+--------------------+----------------+----------------+-------------------------------+-------------------------------+--------------------+------------+
| Host               | Common Name    | DNS Names      | Not Before                    | Not After                     | PublicKeyAlgorithm | Issuer     |
+--------------------+----------------+----------------+-------------------------------+-------------------------------+--------------------+------------+
| www.google.com:443 | www.google.com | www.google.com | 2022-02-28 03:35:56 +0000 UTC | 2022-05-23 03:35:55 +0000 UTC | ECDSA              | GTS CA 1C3 |
+--------------------+----------------+----------------+-------------------------------+-------------------------------+--------------------+------------+

Build from Source

go get -u github.com/guessi/ssl-certs-checker

cd ${GOPATH}/src/github.com/guessi/ssl-certs-checker

vim ... # made some changes

go install github.com/guessi/ssl-certs-checker

ssl-certs-checker --help

License

MIT LICENSE