Skip to main content

zopyx.ssl-cert-check

A tool to check SSL certificate expiration dates.

Installation

You can install the package using pip or uv.

Using pip

pip install .

Using uv

uv pip install .

Usage

The tool checks SSL certificate expiration for a list of domains specified in a configuration file.

Using uvx

You can also run the tool directly using uvx:

uvx --from zopyx.ssl-cert-check ssl-cert-check

Default configuration

By default, it looks for a file named .ssl_domains in your home directory.

Create a file at ~/.ssl_domains with the following format (domain and port on each line):

example.com 443
another-domain.com 443

Then, run the following command:

check-ssl-domains

Custom configuration file

You can also provide a path to a different configuration file using the first argument:

check-ssl-domains /path/to/your/config_file

The format of the configuration file is the same as the default one.

Security Options

The tool includes several security-focused options:

# Allow connections to private IP addresses (use with caution)
check-ssl-domains --allow-private-ips

# Limit concurrent connections (default: 50)
check-ssl-domains --max-concurrent 20

# Set connection timeout (default: 5 seconds)
check-ssl-domains --timeout 10

Security Note: By default, the tool blocks connections to private IP addresses to prevent Server-Side Request Forgery (SSRF) attacks. Only use --allow-private-ips if you need to check internal services and understand the security implications.

Example output

The tool will print a table with the host, port, days until expiration, and the status:

| Host               | Port | Expires In (Days) | Status      |
|--------------------|------|-------------------|-------------|
| example.com        | 443  | 30                | 30 days     |
| another-domain.com | 443  | 60                | 60 days     |

License

MIT

Copyright

(C) 2025 by Andreas Jung

Release files for zopyx.ssl-cert-check 0.4.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zopyx.ssl-cert-check 0.4.4
File Size Uploaded
zopyx_ssl_cert_check-0.4.4.tar.gz 4.8 kB Details

Release files / zopyx_ssl_cert_check-0.4.4.tar.gz

Download URL zopyx_ssl_cert_check-0.4.4.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
90640e602cf39bb02081aa3b1411a0903649fe4e1163c429c091d0bd8e3d39be
BLAKE2b-256 checksum
How to use checksums
c391010002281de12a174efb319ba27ef28f24e96be657163d0bd7c59adba6c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.4.4 This release

1 release file

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page