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.

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.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zopyx_ssl_cert_check-0.4.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for zopyx_ssl_cert_check-0.4.2.tar.gz
Algorithm Hash digest
SHA256 3e14d6e4ac7022cba35eca0716cb48210760688f706ec1dd1097a1b59228d4eb
MD5 d3329c207451cc7a58f09c7cb971041e
BLAKE2b-256 de580438c78e81511de6fb8b6a83cba1591ace0994600a798343133cf41916a3

See more details on using hashes here.

File details

Details for the file zopyx_ssl_cert_check-0.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for zopyx_ssl_cert_check-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d218d566e42b1e3318f729e002f45b0c774f6f8b6295faebf869e8cdfcc39b82
MD5 39a3e0226664f88b5e3b0033d291c4d8
BLAKE2b-256 891c5f6c57d01decf7b8352ec910741fb393ec4f02f4dc4d2ecf5b1bef6e3e30

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