certificate checker to return some basic information about a remote site's certificate and display if it is valid or not
Find a file
2021-10-04 16:48:25 -04:00
checkcert 0.6.0 2021-10-04 14:01:49 -04:00
ci chore: add ci directory for test input data 2021-10-01 12:21:11 -04:00
completions feat(completion): add completion scripts 2021-10-04 16:48:25 -04:00
docs docs: remove personal "you/I/me" 2021-10-04 14:17:40 -04:00
tests test: fix separator testing issues 2021-10-04 14:47:45 -04:00
.coveragerc test: add base coverage for all functions 2021-09-28 16:52:14 -04:00
.envrc initial checkin with very basic functionality 2021-09-28 16:29:27 -04:00
.gitignore docs: add docs dir for handling sphinx-based documentation 2021-10-04 12:01:57 -04:00
.pylintrc refactor: cleanup main logic to reduce branches 2021-10-01 14:59:38 -04:00
CHANGELOG.md docs: update changelog for 0.6.0 2021-10-04 14:02:45 -04:00
Makefile docs: update docs to reflect all current options 2021-10-04 14:00:55 -04:00
poetry.lock docs: enable rtd theme 2021-10-04 12:18:43 -04:00
pyproject.toml docs: add full documentation site 2021-10-04 14:08:12 -04:00
README.md docs: update full doc url in readme 2021-10-04 14:51:53 -04:00

checkcert

This utility was based off of this gist.

checkcert has the logic of that gist wrapped in a click-based CLI and added command-line options (checkcert --help to see them)

Full documentation is available at https://checkcert.readthedocs.io

Installation

from PyPi

pip install checkert

Usage

When you run pip install checkcert, you will get a checkcert command. To show all the options, simply run checkcert --help to get the most-current list of commands and options.

Basic Usage

The basic usage is checkcert example.com

Check cert with an alternate port

Anywhere you specify the host, you may use the format host:port to specify an alternate port. If no port is specified, 443 will be used. To check something running on port 8081 for example, execute checkcert example.com:8081

Multiple domains

checkcert will take all domains specified on the command line. Multiple values may be specified as checkcert example.com www.example.com alt.example.com:444

Domain list from a file

checkcert can be instructed to pull the list of domains from a file instead with the --filename option. The file contents will just be a domain per line (specified in host:port format, or just host to default to port 443)

create a file named domains.txt with contents like the following

example.com
www.example.com
alt.example.com:444

Then execute checkcert --filename domains.txt