Skip to main content

A tool to check SSL certificate expiration dates.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zopyx_ssl_cert_check-0.4.4.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file zopyx_ssl_cert_check-0.4.4.tar.gz.

File metadata

  • Download URL: zopyx_ssl_cert_check-0.4.4.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for zopyx_ssl_cert_check-0.4.4.tar.gz
Algorithm Hash digest
SHA256 90640e602cf39bb02081aa3b1411a0903649fe4e1163c429c091d0bd8e3d39be
MD5 24bfd363fba3c425674d9daf542756f6
BLAKE2b-256 c391010002281de12a174efb319ba27ef28f24e96be657163d0bd7c59adba6c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page