Skip to main content

Resolve / obtain the certificate intermediates of a x509 cert

Project description

Python certificate chain resolver

https://github.com/PyCQA/prospector/

Licence Build Docs Downloads Python)

Resolve / obtain the certificate intermediates of a x509 certificate. This tool writes the full bundle to stdout.

Support

  • PKCS7, PEM and DER formats
  • LetsEncrypt certificates

Dependencies

  • cryptography

Documentation

Read more on readthedocs

Install

Pypi

$ pip install cert-chain-resolver

Usage

Installed using PIP

$ cert_chain_resolver certificate.crt > bundle.crt

Or read from stdin

$ cat certificate.crt | cert_chain_resolver > bundle.crt

After cloning the repository

Install dependencies

$ make

from file:

$ python -m cert_chain_resolver.cli certificate.crt > bundle.crt

from stdin:

$ cat certificate.crt | python -m cert_chain_resolver.cli > bundle.crt

Print the details of each certificate in resolved chain

$ cert_chain_resolver cert.pem --info

Development

bootstrap

$ make

Testing

Unit testing

$ make tests

Re-run tests on file changes:

$ make tests TEST_ARGS="-- -f"

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

cert_chain_resolver-1.0.1-py2.py3-none-any.whl (12.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file cert_chain_resolver-1.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: cert_chain_resolver-1.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.1

File hashes

Hashes for cert_chain_resolver-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 26a1b4b40f09709b88d29ca4301871cd0f6b96fa3465bd2724a5ea44531eb43c
MD5 fd375fb0b9a4509d12de29cb3e76db2b
BLAKE2b-256 678ffc894be739a5314c70f7c6dc6611ea0a961cde81458dd7a7bad0ad9dbb40

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page