Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

SSL/TLS certificate chain verification

Project description

Verify SSL/TLS certificate chains.

>>> import verifi
>>> errors = verifi.verify('www.konklone.com')

errors will be a list of verifi.VerificationError objects representing issues found in the certificate chain. If errors is empty, everything is good!

The verifi.VerificationError object has two important attributes:

  • message - the error message as a string
  • cert - a verifi.Certificate instance of the cert that contained the error

Installation

Available on PyPI as verifi.

pip install verifi

Command Line Usage

verifi provides a command line utility that will list all certificate issues for a given hostname:

$ verifi www.konklone.com
Verifying certs at www.konklone.com
OK!

$ verifi konklone.com
Verifying certs at konklone.com
Found the following issues:
- Hostname does not match [www.konklone.com]
FAILED!

$ verifi -h
usage: verifi.py [-h] [-p PORT] HOSTNAME

Verify TLS certificate chain.

positional arguments:
  HOSTNAME              site to verify

optional arguments:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  host port (default: 443)

Project details


Release history Release notifications

This version
History Node

0.1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
verifi-0.1.0.tar.gz (3.9 kB) Copy SHA256 hash SHA256 Source None Nov 7, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page