Skip to main content

Service identity verification for pyOpenSSL & cryptography.

Project description

Documentation Status CI status Test Coverage Code style: black

Use this package if:

  • you use pyOpenSSL and don’t want to be MITMed or
  • if you want to verify that a PyCA cryptography certificate is valid for a certain hostname or IP address.

service_identity aspires to give you all the tools you need for verifying whether a certificate is valid for the intended purposes.

In the simplest case, this means host name verification. However, service_identity implements RFC 6125 fully and plans to add other relevant RFCs too.

service_identity’s documentation lives at Read the Docs, the code on GitHub.

Release Information

18.1.0 (2018-12-05)


  • pyOpenSSL is optional now if you use service_identity.cryptography.* only.
  • Added support for iPAddress subjectAltNames. You can now verify whether a connection or a certificate is valid for an IP address using service_identity.pyopenssl.verify_ip_address() and service_identity.cryptography.verify_certificate_ip_address(). #12

Full changelog.


service_identity is written and maintained by Hynek Schlawack.

The development is kindly supported by Variomedia AG.

Other contributors can be found in GitHub’s overview.

Download files

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

Files for service_identity, version 18.1.0
Filename, size & hash File type Python version Upload date
service_identity-18.1.0-py2.py3-none-any.whl (11.8 kB) View hashes Wheel py2.py3
service_identity-18.1.0.tar.gz (21.7 kB) View hashes Source None

Supported by

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