Skip to main content

Service identity verification for pyOpenSSL & cryptography.

Project description

Service Identity Verification for pyOpenSSL & cryptography

Use this package if:

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

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.

Also check out pem that makes loading certificates from all kinds of PEM-encoded files a breeze!

Project Information

service-identity is released under the MIT license, its documentation lives at Read the Docs, the code on GitHub, and the latest release on PyPI.

Credits

service-identity is written and maintained by Hynek Schlawack.

The development is kindly supported by my employer Variomedia AG, service-identity's Tidelift subscribers, and all my amazing GitHub Sponsors.

service-identity for Enterprise

Available as part of the Tidelift Subscription.

The maintainers of service-identity and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open-source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use.

Release Information

Added

  • Python 3.14 and 3.15 are now officially supported. #85 #93

Changed

  • service-identity now uses cryptography's Rust-based ASN.1 decoder and doesn't depend on pyasn1 and pyasn1-modules anymore. As a result, the oldest supported pyOpenSSL backend combination is now pyOpenSSL 26.1.0 with cryptography 47.0.0. #95

Fixed

  • Verifying a single-label hostname (e.g. localhost) against a wildcard certificate pattern now raises VerificationError cleanly instead of crashing with an opaque ValueError. #92

Complete Changelog →

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

service_identity-26.1.0.tar.gz (42.9 kB view details)

Uploaded Source

Built Distribution

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

service_identity-26.1.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file service_identity-26.1.0.tar.gz.

File metadata

  • Download URL: service_identity-26.1.0.tar.gz
  • Upload date:
  • Size: 42.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for service_identity-26.1.0.tar.gz
Algorithm Hash digest
SHA256 6358c52882c96e66ac4a55eb3a72c7dd4a70763f8cc6fa4e70abde2656f4bf3b
MD5 fc0ed70ba5b73387d25b51e88e2740cf
BLAKE2b-256 6187ad52e2c582c0f0e7f0a1b86950494c38d67422dc0f5ed9044a5fb9569a49

See more details on using hashes here.

Provenance

The following attestation bundles were made for service_identity-26.1.0.tar.gz:

Publisher: pypi-package.yml on pyca/service-identity

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file service_identity-26.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for service_identity-26.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68c32dadbb69135fb951077677e07cd7f6031020f3a8c8f47a28cda8a0742118
MD5 41845717ce5e5f256d72c58487239a99
BLAKE2b-256 93eb2433e1af4ff903499144de4846569fb3300b816179ae99a03c2f011b666a

See more details on using hashes here.

Provenance

The following attestation bundles were made for service_identity-26.1.0-py3-none-any.whl:

Publisher: pypi-package.yml on pyca/service-identity

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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