Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

SSL/TLS certificate chain verification

Project Description

Verify SSL/TLS certificate chains.

>>> import verifi
>>> errors = verifi.verify('')

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


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
Verifying certs at

$ verifi
Verifying certs at
Found the following issues:
- Hostname does not match []

$ verifi -h
usage: [-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)

Release History

This version
History Node


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
(3.9 kB) Copy SHA256 Hash SHA256
Source None Nov 7, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers