Easily check certificate status of domains
Project description
Certificate tool
The certtool
package provides the cert
command for quickly checking TLS certificates on one or more hosts.
Examples
Quickly check the https certificate of one or more domains
$ cert example.com
example.com Ok, 127 days remaining
$ cert example.com example.org example.nl
example.com Ok, 127 days remaining
example.org Ok, 127 days remaining
example.nl Ok, 169 days remaining
Also check imap and smtp certificates
cert --imaps --smtps example.com
example.com https Certificate is expired (valid until 2021-09-30 22:54:11)
imaps Certificate almost expired (19 days, 1:45:51.654055)
smtps Certificate almost expired (19 days, 1:45:51.604624)
It's also possible to not check https by specifying --no-https
$ cert --imaps --smtps --no-https example.com example.nl
example.com imaps Certificate almost expired (19 days, 1:44:26.323233)
smtps Certificate almost expired (19 days, 1:44:26.287489)
example.nl imaps Wrong CN, certificate is for example.org
smtps Wrong CN, certificate is for example.org
Usage
usage: Certificate checker [-h] [--https | --no-https] [--imaps | --no-imaps]
[--pop3s | --no-pop3s] [--smtps | --no-smtps]
[--submission | --no-submission] [--port PORT]
[--timeout TIMEOUT]
domain [domain ...]
positional arguments:
domain
options:
-h, --help show this help message and exit
--https, --no-https Check http (443) (default: True)
--imaps, --no-imaps Check imap (993) (default: False)
--pop3s, --no-pop3s Check pop3s (995) (default: False)
--smtps, --no-smtps Check smtp (465) (default: False)
--submission, --no-submission
Check smtp with starttls (587) (default: False)
--port PORT Check a specific port
--timeout TIMEOUT, -t TIMEOUT
Set the timeout in seconds for the TCP connection
Installation
The tool can be installed with a regular python3 setup.py install
or installed from pypi with
# pip3 install certtool
The package depends on pyopenssl
and colorama
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
certtool-0.2.0.tar.gz
(16.7 kB
view details)
File details
Details for the file certtool-0.2.0.tar.gz
.
File metadata
- Download URL: certtool-0.2.0.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.3 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0576f01554543618dc42adcf2e3c4cec4c514f255bcd3b23b440326cf791eb8 |
|
MD5 | e56b90c93a2bfcc77ea40e08909b0d79 |
|
BLAKE2b-256 | 686ad60aacd55709d5fe0c3cb4e71bb4134cfe7fc5d9cbcbe34e32edd656cc29 |