dcert
dcert is a command line tool that decodes, validates and converts X.509 certificates and diagnoses TLS endpoints.
Install
pip install dcert
uv tool install dcert # on PATH, in its own environment
uvx dcert example.com # run once without installing
Examples
# Decode and validate the certificate chain of a live endpoint
dcert https://example.com
# Read a local certificate and print JSON
dcert cert.pem --format json
# Explain why an endpoint, mTLS handshake, gateway or proxy fails
dcert diagnose https://example.com
# Convert a PFX bundle to PEM files
dcert convert pfx-to-pem client.pfx --password secret --output-dir ./certs
Platforms
| Platform | Wheel tag |
|---|---|
| Linux x86_64, glibc 2.34+ (RHEL 9, Ubuntu 22.04, Debian 12 and later) | manylinux_2_34_x86_64 |
| macOS Intel 10.15+ | macosx_10_15_x86_64 |
| macOS Apple Silicon 11+ | macosx_11_0_arm64 |
| Windows x86_64 | win_amd64 |
On any other platform (Linux aarch64, musl, Windows arm64) ask for dcert>=4:
pip then reports "No matching distribution found" instead of falling back to
the old platform independent 3.0.77 package. Use the Docker image
(docker run --rm --entrypoint dcert ghcr.io/scgis-wales/dcert:latest example.com)
or build from source:
cargo install --git https://github.com/SCGIS-Wales/dcert --locked --bin dcert dcert
Security
The wheel contains one native executable, no Python code and no dependencies. Nothing is downloaded at install or run time, so an install from PyPI or a private mirror needs no access to GitHub. Releases carry build provenance attestations and an SBOM; see the security policy.
MCP server
To give an AI assistant the same tools, install
dcert-mcp, which brings dcert with it:
pip install dcert-mcp
uv tool install dcert-mcp --with-executables-from dcert
Documentation
The full documentation, the changelog and the security policy are in the repository.
Metadata
Release files for dcert 4.0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| dcert-4.0.12-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for dcert-4.0.12-py3-none-win_amd64.whl |
| dcert-4.0.12-py3-none-manylinux_2_34_x86_64.whl | Python 3 | none | Linux glibc 2.34+ x86-64 | Details for dcert-4.0.12-py3-none-manylinux_2_34_x86_64.whl |
| dcert-4.0.12-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for dcert-4.0.12-py3-none-macosx_11_0_arm64.whl |
| dcert-4.0.12-py3-none-macosx_10_15_x86_64.whl | Python 3 | none | macOS 10.15+ x86-64 | Details for dcert-4.0.12-py3-none-macosx_10_15_x86_64.whl |
Total release size: 14.7 MB
Release files / dcert-4.0.12-py3-none-win_amd64.whl
| Download URL | dcert-4.0.12-py3-none-win_amd64.whl |
|---|---|
| Size | 4.9 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
518c1358da716e4ad384c20590ccd00c43e61dac9b9d141a5c3a12f34a59956b
|
|
BLAKE2b-256 checksum How to use checksums |
f0f2d0cd55648c576e84b262d81f9b8efeb2569d80f1501ee3d644d75283138e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / dcert-4.0.12-py3-none-manylinux_2_34_x86_64.whl
| Download URL | dcert-4.0.12-py3-none-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 3.4 MB |
| Tags | Linux glibc 2.34+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
b67b871a35d44bc4ab53b25738154d3375a1ba7766b756bc7a36805e299060c4
|
|
BLAKE2b-256 checksum How to use checksums |
b387e9cc15e94ac750b36313b3623daa84303ba8fe4357fd3203d38c13a13079
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / dcert-4.0.12-py3-none-macosx_11_0_arm64.whl
| Download URL | dcert-4.0.12-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7bbaa3647356332acf816aeb13eafa4ad75dceb705a2c8e3f68b6b2c3e2e284b
|
|
BLAKE2b-256 checksum How to use checksums |
e5198aedc2fa978c1122a726a6c9fa145f3efccfabd46e1876e3535a2cdaa9b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / dcert-4.0.12-py3-none-macosx_10_15_x86_64.whl
| Download URL | dcert-4.0.12-py3-none-macosx_10_15_x86_64.whl |
|---|---|
| Size | 3.2 MB |
| Tags | Python 3 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
e791be78cd330706eab9031ee2c4aafedf44ca9e29785ef71b74f7274a523fbe
|
|
BLAKE2b-256 checksum How to use checksums |
ab6452415af353ea16dd341b8ff358a8f9fb63bf91225d15d661b5c17333b01a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logSecurity for dcert 4.0.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 4 files in this release have been uploaded with provenance metadata.
Attestation for dcert-4.0.12-py3-none-win_amd64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.