diff --git a/README.md b/README.md index d385a56..ee502f2 100644 --- a/README.md +++ b/README.md @@ -4,52 +4,47 @@ [![Docker Pulls](https://img.shields.io/docker/pulls/guessi/ssl-certs-checker.svg)](https://hub.docker.com/r/guessi/ssl-certs-checker/) [![Docker Automated](https://img.shields.io/docker/automated/guessi/ssl-certs-checker.svg)](https://hub.docker.com/r/guessi/ssl-certs-checker/) -## Setup Guide +## Usage - go get -u github.com/guessi/ssl-certs-checker + docker run --rm -v $(pwd)/hosts.yaml:/opt/hosts.yaml:ro -it guessi/ssl-certs-checker --help -## Examples + NAME: + SSL Certificate Checker - check SSL certificates at once -run with docker + USAGE: + ssl-certs-checker [global options] command [command options] [arguments...] - docker build -t guessi/ssl-certs-checker . + 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 -install binary to your ${GOPATH} and run locally - - go install github.com/ssl-certs-checker - - ${GOPATH}/bin/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 | 2020-04-15 20:25:31 +0000 UTC | 2020-07-08 20:25:31 +0000 UTC | ECDSA | GTS CA 1O1 | - | www.azure.com:443 | *.azure.com | *.azure.com | 2019-12-17 19:51:44 +0000 UTC | 2020-12-17 19:51:44 +0000 UTC | RSA | Microsoft IT TLS CA 4 | - | www.amazon.com:443 | www.amazon.com | amazon.com | 2020-01-23 00:00:00 +0000 UTC | 2020-12-31 12:00:00 +0000 UTC | RSA | DigiCert Global CA G2 | - | | | amzn.com | | | | | - | | | buybox.amazon.com | | | | | - | | | corporate.amazon.com | | | | | - | | | home.amazon.com | | | | | - | | | iphone.amazon.com | | | | | - | | | konrad-test.amazon.com | | | | | - | | | mp3recs.amazon.com | | | | | - | | | p-nt-www-amazon-com-kalias.amazon.com | | | | | - | | | p-y3-www-amazon-com-kalias.amazon.com | | | | | - | | | p-yo-www-amazon-com-kalias.amazon.com | | | | | - | | | static.amazon.com | | | | | - | | | test-www.amazon.com | | | | | - | | | uedata.amazon.com | | | | | - | | | us.amazon.com | | | | | - | | | www.amazon.com | | | | | - | | | www.amzn.com | | | | | - | | | www.cdn.amazon.com | | | | | - | | | www.m.amazon.com | | | | | - | | | yellowpages.amazon.com | | | | | - | | | yp.amazon.com | | | | | +--------------------+----------------+---------------------------------------+-------------------------------+-------------------------------+--------------------+-----------------------+ +## 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](LICENSE) diff --git a/hosts.yaml b/hosts.yaml index 841c4b2..abc75ee 100644 --- a/hosts.yaml +++ b/hosts.yaml @@ -1,7 +1,6 @@ hosts: - www.google.com -- www.azure.com -- www.amazon.com -# - www.google.com:443 -# - www.azure.com:443 +# - www.azure.com # - www.amazon.com:443 +# - example.org +# - example.com:443