pqcprobe
A small command-line TLS probing utility that uses pyOpenSSL to inspect an HTTPS server's TLS configuration, with a focus on post-quantum readiness.
Features:
- Reports negotiated TLS version, cipher, ALPN and certificate summary
- Reports the negotiated key-exchange group and flags whether it is
post-quantum (e.g.
X25519MLKEM768) or classical - Assesses post-quantum posture from verified TLS 1.3 group probes and the negotiated session; reports an indeterminate result when testing is incomplete
- Verifies the certificate matches the requested hostname (SAN/CN, wildcard and IP aware)
- Probes server support for TLS 1.3 and TLS 1.2
- Samples which TLS 1.2 ciphers the server accepts (and attempts TLS 1.3 ciphersuites where supported by OpenSSL)
- Can fetch raw PEM for the server certificate (--raw-cert)
- Concurrency option for probing (--concurrency)
- Human-friendly summary (--pretty) or JSON output (--json)
- Meaningful exit codes for scripting (see below)
Requirements:
- Python 3.9.2+
- pyOpenSSL, cryptography (installed automatically)
- OpenSSL 3.x recommended (3.5+ for post-quantum group support). On macOS the
system
opensslis LibreSSL and cannot test the ML-KEM hybrid groups; install OpenSSL 3.5+ (e.g. via Homebrew) for full functionality.
Install
pip install pqcprobe
This installs a pqcprobe command. To run from a source checkout instead:
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -e .
Usage
pqcprobe https://example.com --pretty
pqcprobe example.com:443 --json
pqcprobe example.com:443 --raw-cert
pqcprobe example.com:443 --ca-file /path/to/ca-bundle.pem
# Post-quantum audit: fail (exit 3) if the server offers no PQC key exchange
pqcprobe https://example.com --fail-on-classical-only
# Skip group probing entirely (e.g. when the openssl CLI is unavailable)
pqcprobe https://example.com --no-groups
(From a source checkout without installing, use python3 pqcprobe.py ....)
Post-quantum key-exchange probing:
- Enumerating group support forces individual groups via the native
opensslCLI, since pyOpenSSL does not expose a way to set the group list. OpenSSL 3.5+ is required for the ML-KEM hybrid groups (X25519MLKEM768, etc.). Groups the local openssl doesn't recognize are reported as "not testable" rather than "unsupported" (relevant on macOS, whose system openssl is LibreSSL). Each probe requires TLS 1.3 and, by default, verifies the certificate and target name. Use--ca-filefor private PKI so Python and the native CLI use the same CA bundle. - Reading the negotiated group uses pyOpenSSL's
Connection.get_group_name()and needs no external tools. pqc_readyandhndl_riskarenullwhen the assessment is indeterminate. Offered hybrid support does not prove that every client negotiates it or that historical sessions were protected. Results from--no-verifyare labeled unauthenticated; the policy gate requires verification.- A certificate without a SAN can still use its actual subject CN for legacy compatibility. Certificates with a SAN do not use CN fallback; wildcards must occupy the complete leftmost DNS label.
Exit codes:
0success1handshake failed2certificate hostname mismatch (when verifying)3no post-quantum key exchange offered (only with--fail-on-classical-only)4post-quantum assessment indeterminate (only with--fail-on-classical-only)
--fail-on-classical-only cannot be combined with --no-groups, --no-verify,
or --raw-cert. --raw-cert writes only PEM to stdout on success; errors go to
stderr with a nonzero exit code.
Notes:
- Programmatic overriding of TLS 1.3 ciphersuites requires a recent OpenSSL + pyOpenSSL exposing
set_ciphersuites. - Cipher probing may produce handshake failures for many ciphers — the tool records successes and errors.
- Only use pqcprobe against systems you own or are authorized to test.
Contributing
Contributions are welcome — see CONTRIBUTING.md. Security issues should be reported privately per SECURITY.md.
License
MIT © Andre Van Klaveren
Metadata
Release files for pqcprobe 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pqcprobe-0.2.0.tar.gz | 30.3 kB | With provenance | Details for pqcprobe-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pqcprobe-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pqcprobe-0.2.0-py3-none-any.whl |
Total release size: 45.4 kB
Release files / pqcprobe-0.2.0.tar.gz
| Download URL | pqcprobe-0.2.0.tar.gz |
|---|---|
| Size | 30.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7e2aecb5152c71e02f960ce37a68f4cf92b0b4d9b350ce3f98b2b745dd79dfd
|
|
BLAKE2b-256 checksum How to use checksums |
0c995d2e8e66a25f7e52f06210d6c0595d23924588b1c91cb9f518746ea0b264
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 26, 2026.
Transparency logRelease files / pqcprobe-0.2.0-py3-none-any.whl
| Download URL | pqcprobe-0.2.0-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4567738c91929e9270c9aa5ebcfe678c24add24d7f7d14d498c6b2d5cdc84dcd
|
|
BLAKE2b-256 checksum How to use checksums |
d48ec2ef79f58b7c33b63646d58863d982928c754efd0b8a957976454f48de7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 26, 2026.
Transparency logSecurity for pqcprobe 0.2.0
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
Both files in this release have been uploaded with provenance metadata.
Attestation for pqcprobe-0.2.0.tar.gz
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 Sep 26, 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.