Skip to main content

p256check

Today's numbers: top-10,000 sites that chain through a P-256 CA

Check your site and see the full daily scoreboard: https://mfaiqkhan.github.io/p256check/ (the card above updates every day).

Will Chrome block your site on 15 March 2027? From that date Chrome blocks certificate chains in which any CA certificate has an ECDSA P-256 key (Chrome Root Program, 3 Dec 2026). Microsoft follows: Edge applies the same rule on the same day, and Windows stops trusting P-256 roots on 23 February 2027 (Microsoft Trusted Root Program, 4 Dec 2026). p256check builds the path from your site to a Chrome root and to a Microsoft root, reads every CA key on it (root included), and tells you for all three. The same tool inventories the cryptography in code, binaries and live servers for the move to post-quantum algorithms (ML-KEM, ML-DSA, SLH-DSA), with a CycloneDX 1.6 CBOM.

uvx p256check example.com                       # Chrome, Edge and Windows P-256 rules, what to do, ML-KEM
uvx p256check example.com --subdomains          # every host name of the domain in Certificate Transparency
uvx p256check scan --domain example.com --ssh example.com .   # everything: TLS, JWKS, DNSSEC, SSH, this repo
claude mcp add p256check -- uvx p256check mcp   # let a coding agent check and draft the fixes

No dependencies: Python 3.10+, standard library only. Live scoreboard of ~100 major sites and a daily survey of the Tranco top 10,000: docs/ (GitHub Pages).

The 15 March check

$ p256check bitbucket.org
bitbucket.org:443  BLOCKED FROM 15 MARCH 2027
  Blocked in Chrome from 15 March 2027: P-256 CA key in the chain, and this certificate is valid until 2027-05-26
  chain *.bitbucket.org [ECDSA P-256, expires 2027-05-26]
        <- Amazon ECDSA 256 S17 [ECDSA P-256]  <- P-256 CA key
        <- Amazon Root CA 3 [ECDSA P-256, Chrome root]  <- P-256 CA key; Chrome stops trusting its new certificates after 2027-09-14
  Edge: blocked from 15 March 2027: P-256 CA key in the chain (Amazon ECDSA 256 S17, Amazon Root CA 3) and the certificate is valid until 2027-05-26
  Windows: blocked from 23 February 2027: P-256 root (Amazon Root CA 3) and the certificate is valid until 2027-05-26
  site key: ECDSA P-256 (not covered by the 15 March rule; a 256-bit curve the 2 Dec 2026 NSA advisory flags)
  RSA certificate too: RSA-2048 from Amazon RSA 2048 S24, expires 2027-05-26: not affected
  HSTS: on (max-age 2 years, includeSubDomains, preload): a certificate error here has no click-through, so a blocked chain is an outage
  CAA at bitbucket.org: only amazon.com (Amazon), digicert.com (DigiCert), globalsign.com (GlobalSign), letsencrypt.org (Let's Encrypt) may issue
  key exchange: X25519MLKEM768 (post-quantum hybrid)
  P-384 key exchange: accepted (Firefox will prefer it to X25519 and P-256 when ML-KEM is not available; Mozilla, 3 Dec 2026)
  note: Chrome (153+) accepts no certificates from Amazon Root CA 3 logged after 2027-09-14
  what to do:
    - This server already has an RSA certificate (Amazon RSA 2048 S24) that no rule affects. Clients that accept ECDSA (as Chrome does, and as this check did) are given the ECDSA one. Stop serving the ECDSA certificate, or replace it with one from a CA key that is not P-256, and every client gets a working chain.
    - Replace the certificate before 23 February 2027 (Windows): it stays valid past the cutoff, so its normal renewal comes too late.
    - Windows removes trust in Amazon Root CA 3 (a P-256 root) on 23 February 2027, 20 days before Chrome: programs that use Windows' own certificate checks fail first.
    - HSTS is on, so browsers show no 'proceed anyway' link: if the certificate is not replaced in time the site is unreachable, not just warned about.
    - CAA at bitbucket.org allows only amazon.com, digicert.com, globalsign.com, letsencrypt.org. If the fix is a certificate from another CA, add that CA's CAA identifier first, or issuance fails.
    - AWS Certificate Manager picks the intermediate itself and lets no one choose it. An RSA certificate (key algorithm RSA_2048) comes from Amazon's RSA intermediates, which no rule affects. AWS had said nothing about this rule as of 6 December 2026. (https://docs.aws.amazon.com/acm/latest/userguide/acm-certificate-characteristics.html)
Status Meaning
blocked A CA key on the path is P-256 and the certificate is valid past the cutoff
renewal-at-risk A CA key on the path is P-256; the certificate expires first, so the next one must come from a CA without a P-256 key (the common case: Google says over 99% of affected certificates expire first)
alt-path The served chain has a P-256 CA, but another path to a Chrome root avoids it
ok No CA key on the path is P-256 (a P-256 site key is reported, but the rule does not cover it)
no-chrome-root No path to a Chrome root: the rule does not apply

Edge and Windows use the same statuses against Microsoft's root store (no-root when there is none). Windows counts only the root's key and uses 23 February 2027. Microsoft's server-authentication roots come from its CCADB report and Microsoft's own download point (tools/update_ms_root_store.py; 227 roots, 5 of them P-256).

How: the certificates the server sends, missing intermediates from the AIA URL, and the trust anchors of the Chrome Root Store bundled from Chromium's source (tools/update_root_store.py; version 45 has 95 roots, 3 of them P-256, as Google's announcement says). Each link of a path is checked like a verifier does: names and key identifiers match, the issuer's key verifies the signature (pure Python: RSA PKCS#1 v1.5 and PSS, ECDSA P-256, P-384, P-521; all 322 bundled roots verify), and an intermediate must be a CA (CA:TRUE) and within its dates. A certificate that only looks like the issuer is not used. Chrome's "no new certificates after" dates for roots are reported as notes.

Beyond the verdicts (skip them with --quick):

  • The other certificate. Many servers hold an ECDSA and an RSA certificate and pick one per client. A TLS 1.2 handshake that offers only RSA (or only ECDSA) cipher suites reads the other one in clear text; its chain gets its own verdicts. If it is safe, the quickest fix is to stop serving the ECDSA certificate.
  • HSTS (read only for sites at risk): with it, browsers show no "proceed anyway" link, so a blocked chain is an outage (RFC 6797 section 12.1).
  • CAA (sites at risk): which CAs the domain's DNS lets issue; moving to another CA fails until CAA lists it.
  • What to do: steps built from these measurements, plus what the CA itself has published (Google Trust Services, ZeroSSL, AWS, Cloudflare's Universal SSL), each with its source link.
  • P-384 key exchange: Firefox will prefer it to X25519 and P-256 when ML-KEM is not available (Mozilla, 3 Dec 2026).

Exit codes, for CI:

Code When
0 nothing at the --fail-on level
1 blocked (Chrome, Edge or Windows)
3 renewal at risk or depends on path, only with --fail-on at-risk
2 a host could not be checked, or bad arguments

--fail-on blocked is the default, so a site whose managed certificate will simply renew does not fail a build; --fail-on at-risk is stricter, --fail-on never (or --exit-zero) reports only.

Every host name of a domain

$ p256check mozilla.org --subdomains
mozilla.org: 236 host names in Certificate Transparency (certspotter; crt.sh did not answer (Bad Gateway), so the list may be incomplete), checked 236: 228 answered on port 443, 6 not in DNS, 2 no TLS answer
  RENEWAL AT RISK   blog.mozilla.org              WE1, certificate to 2027-02-10; also has a safe RSA certificate
  RENEWAL AT RISK   blog.nightly.mozilla.org      WE1, certificate to 2027-02-10; also has a safe RSA certificate
  RENEWAL AT RISK   blog.rally.mozilla.org        WE1, certificate to 2027-02-11; also has a safe RSA certificate
  RENEWAL AT RISK   builders.mozilla.org          WE1, certificate to 2027-02-07; also has a safe RSA certificate
  ... (9 more, all WE1)
  NOT AFFECTED      215 hosts: mozilla.org, www.mozilla.org, accounts.mozilla.org, addons.mozilla.org, ads-img.mozilla.org, ads.mozilla.org ...

The apex can pass while other names sit behind another CDN or CA: here mozilla.org and www pass, and 13 blog and project sites (on one other host) are at risk (6 Dec 2026). --subdomains asks both free Certificate Transparency searches at once (crt.sh and Cert Spotter; neither is complete alone) for names in certificates valid today, then checks each name (8 at a time; --max-hosts, default 100). Names that are not in DNS or do not answer on 443 are counted, not failed. The domain is sent to those two services. Cert Spotter allows about 10 anonymous requests an hour (one per 100 certificates, at most 5 per domain); CERTSPOTTER_API_KEY (free account) raises it.

Checked against OpenSSL's own path building and signature verification on the same roots, 106 major sites: verdict, CA names, CA keys and site key agree on 106 of 106 (tests/eval_chrome_p256.py, tests/real/RESULTS.md).

Limits: one connection from one place (a CDN can serve other chains elsewhere). The other-certificate probe uses TLS 1.2; for a server that speaks only TLS 1.3 it asks the openssl tool, and says "not determined" without it. Ed25519 and other rare signature algorithms are linked by name only (said in a note). Revocation is not checked. On Python 3.10 to 3.12 the chain the server sends is read with the same TLS 1.2 handshake (or openssl), used only when it returns the same site certificate.

Coding agents

  • MCP server: p256check mcp (stdio). Tools: chrome_p256_check, scan_code, probe_endpoints.
  • Agent Skill: skills/p256check/SKILL.md. It covers the rule, how to read the results, and fixes per CA, based on chains measured on real sites. Copy the folder to ~/.claude/skills/ (Claude Code), or to the skills folder of any agent that reads SKILL.md.

Scoreboard and live checker

  • docs/ is the public page.
  • scoreboard/scan.py refreshes docs/data/ from scoreboard/domains.txt.
  • scoreboard/top.py surveys a pinned Tranco top-10,000 list (scoreboard/top.txt; top.py pin re-pins). It keeps one status letter per domain per day in docs/data/top_history.json, so changes come from certificates, not from the ranking.
  • .github/workflows/scoreboard.yml runs both every day and refreshes both root stores on Mondays.
  • The live checker is api/check.py (Vercel) or p256check serve (anywhere). It only checks public addresses, only on port 443, with a rate limit and a 10-minute cache. Set its URL in docs/config.js.

The full inventory

p256check scan path/to/project       # folder, file, archive (.jar .whl .zip .tgz) or binary
p256check scan --domain example.com   # TLS chain + OpenID/JWKS keys + DNSSEC keys of a domain
p256check scan --ssh host.example.com # SSH key exchange, host key algorithms and host keys
p256check scan --jwks https://login.example.com --dnssec example.com --tls api.example.com:8443
p256check scan . --profile pqc        # rank on the quantum-only timeline instead
p256check scan . --fail-on suspect-now # CI: exit 1 on 256-bit curves or anything worse

Output goes to p256check-out/cbom.json and p256check-out/report.html. From a checkout, use python -m p256check.

What it looks at

Layer How Finds
Dependencies package-lock, yarn, pnpm, requirements, poetry, uv, Pipfile, go.mod, Cargo, Maven, Gradle, Gemfile, Composer, NuGet crypto libraries, direct or transitive
Source language rules for Python, JS/TS, Java/Kotlin, Go, C/C++ (OpenSSL 3, liboqs, PQClean), Rust, C#; comments are blanked first; constants are followed (ALG = "RSA" … getInstance(ALG)); import aliases undone the algorithm, key size or curve, and whether it is used for key exchange or signatures
Hand-written crypto curve primes, orders and generators as integer literals; ML-KEM / ML-DSA NTT root tables as number lists crypto code written without a library
Keys and certificates built-in DER parser: X.509, PKCS#8, PKCS#1, SEC1, OpenSSH private keys, SSH public keys key type, RSA modulus size, curve, signature algorithm, certificates that are still valid after 2030
Configs sshd/ssh config, nginx, Apache, OpenSSL, HAProxy, YAML/properties/TOML keys KEX/host-key algorithms, TLS groups, cipher suites, JWT algorithms
Binaries constant tables computed from their definitions (ML-KEM and ML-DSA NTT roots in plain and Montgomery form, AES, SHA-1/2/3, MD5, P-256/P-384/P-521/secp256k1, Ed25519), symbols, Go package paths, Rust crate paths, Java class constant pools; archives are opened crypto inside compiled code and vendor software
TLS (--tls) a TLS 1.3 ClientHello with an empty key_share, so a server that supports a group must name it in a HelloRetryRequest; then one normal handshake for the certificate chain which groups a server accepts (X25519MLKEM768, SecP256r1MLKEM768, ML-KEM, classical); key and size of the leaf, every intermediate and a sent root. A signature row appears only when its signer is not in the chain
SSH (--ssh) the server's KEXINIT, which is sent in the clear before any key exchange; ssh-keyscan (if installed) for the host keys themselves offered key exchange (mlkem768x25519-sha256, sntrup761, curve25519, ecdh, DH group sizes), host key algorithms (incl. ssh-mldsa44-ed25519), weak ciphers, real host key sizes and curves; classical key exchange next to a PQ hybrid is marked as a fallback
JWT signing keys (--jwks) /.well-known/openid-configuration → jwks_uri, or a JWKS URL directly each key: RSA size from the modulus, EC/OKP curve, ML-DSA (AKP), signing or encryption use; advertised algorithms only when no key of that family is published
DNSSEC (--dnssec) a DNSKEY query with the DO bit to the system resolver (or --resolver), TCP when truncated algorithm and RSA size of the key-signing and zone-signing keys; SHA-1 algorithms (5, 7)

--domain D runs --tls D --jwks D --dnssec D. SSH stays a separate flag, so the tool never connects to a domain's SSH port unasked. All probes read public data only.

Ranking

The threat reading changed on 2 Dec 2026 and is disputed, so the ranking is a switch (--profile).

dec2026 (default). Follows the NSA advisory "Immediate Actions to Push Toward Post-Quantum" (2 Dec 2026). Its inventory step flags every elliptic curve except P-384 and P-521, and EdDSA, and it asks for RSA-3072 or P-384 roots. Filippo Valsorda reads it as 256-bit curves (P-256, X25519, Ed25519) being likely weakened, possibly without a quantum computer. The NSA has not confirmed that, and Rob Joyce says elliptic curves are "still solid". So these curves get their own level, suspect-now, and never fix-now.

Priority dec2026 pqc
fix-now broken in public: MD5, SHA-1, DES, 3DES, RC4, DSA, RSA/DH under 2048 MD5, SHA-1, DES, 3DES, RC4
suspect-now P-256, P-224, P-192, secp256k1, brainpoolP256r1, X25519, Ed25519 (not used)
high key exchange with RSA-3072+, P-384, P-521, DH; RSA-2048 anywhere; keys whose size or curve is not visible quantum-vulnerable key exchange (recorded traffic can be decrypted later)
medium signatures with RSA-3072+, P-384, P-521, Ed448 (stopgaps until ML-DSA) quantum-vulnerable signatures (NIST IR 8547: deprecated after 2030, disallowed after 2035)
ready ML-KEM, ML-DSA, SLH-DSA, hybrids (X25519MLKEM768, mlkem768x25519-sha256, ssh-mldsa44-ed25519) same
info AES, SHA-2/3, crypto libraries (capabilities, not choices), usedforsecurity=False same

Every finding carries a one-line reason (why in JSON, italic in the HTML). Under dec2026 the advice also warns against the migration many guides still suggest: RSA → P-256/ES256/Ed25519 moves a key into the suspect set.

Findings in tests, vendored folders and crypto libraries are listed apart and do not affect --fail-on.

How well it works (measured)

  • Independent corpus (tests/heldout/): 66 files in 8 languages and config formats, with 209 labeled uses and 81 traps (words like RSA in comments, PRESSURE, md5 in URLs, names in disable lists). A separate author wrote it without seeing the scanner. The split was fixed before the first run. On the held-out half after tuning: 84% of uses found on the exact line, 89% within 2 lines, 0 of 52 traps hit. On the tuning half: 98% / 100%. Details: tests/heldout/RESULTS.md.
  • Real binaries. The ML-KEM NTT table was found in four independent implementations: OpenSSL 3.6 libcrypto, OpenSSH 10.5, libsodium and NSS freebl. The ML-DSA table was found in libcrypto. 2 MB of random bytes produce no findings.
  • Real keys. Keys and certificates made by OpenSSL 3.6 and ssh-keygen were read correctly, including an ML-DSA-65 certificate and an ML-KEM-768 key.
  • TLS probe. It tells a hybrid-PQ OpenSSL server (preferred X25519MLKEM768) from a classical one.
  • CBOM. Output validates against the official CycloneDX 1.6 JSON schema (0 errors).
  • A large real tree. Hermes Agent v0.23.1 source (23,435 files, 440 MB) took 114 s on one core. It found real hashlib.md5/sha1 uses and RS256/ES256 JWT checks in auth plugins. It also produced one false positive, "falcon" in a list of animal names read as FN-DSA, which is now fixed: bare words like falcon, kyber and LMS need crypto context.
  • Probes, offline. A local openssl s_server with a P-384 root, an RSA-2048 intermediate and a P-256 leaf: chain read as leaf > intermediate > root, each ranked, no duplicate signature rows. A local unprivileged sshd (OpenSSH 10.5) with RSA-3072, P-384 and Ed25519 host keys: all three read with sizes. A fake SSH server offering ssh-mldsa44-ed25519, diffie-hellman-group1-sha1 and 3des-cbc. A local OpenID provider with RSA-2048/3072, P-256, P-384, Ed25519 and ML-DSA-65 keys. A fake DNS server, over UDP and with truncation to TCP.
  • Probes, real endpoints (3 Dec 2026). DNSSEC: cloudflare.com, isc.org, nic.cz and example.com sign with P-256 (algorithm 13, suspect-now); the root zone and .se with RSA-2048; nasa.gov's zone-signing keys are RSA-1024 (fix-now; sizes checked against dig); google.com is unsigned. OIDC: Google and Microsoft sign ID tokens with RSA-2048 keys. github.com SSH offers mlkem768x25519-sha256 with RSA-3072, P-256 and Ed25519 host keys. cloudflare.com TLS prefers X25519MLKEM768 and still accepts draft Kyber, X25519, P-256 and P-384.
  • Tests. python -m unittest discover -s tests: 39 tests, offline (24 scanner, 15 profile and probe). They generate their own keys and servers.

Limits

  • Pattern-based, not dataflow. An algorithm chosen at runtime from a config outside the tree, or passed through several functions, can be missed. In a binary, "supports" cannot be told apart from "uses".
  • Draft Kyber and ML-KEM share NTT constants, so in binaries the constants alone cannot tell them apart. Names and OIDs can.
  • In a statically linked binary that embeds OpenSSL (Node, for example), everything OpenSSL supports shows up. It is marked as library capability.
  • Not compared head to head with PQCA CBOMkit or the commercial scanners yet.
  • Probes: SSH host key sizes need ssh-keyscan; without it only the offered algorithm names are listed. The TLS chain is read with get_unverified_chain on Python 3.13+, and with a TLS 1.2 handshake (or the openssl tool) on 3.10 to 3.12. DNSSEC trusts the resolver's answer (it does not validate signatures). Identical keys on one endpoint are shown once (two RSA-2048 JWKS keys are one row; the probe summary lists them all).
  • The dec2026 profile encodes one reading of a disputed advisory. Use --profile pqc for the earlier quantum-only view.

Accuracy on real projects and servers (2026-12-04/05)

  • Precision on 11 real open-source projects (two independent samples of 110 random findings, labelled blind): 0.95 and 0.94; key sizes/curves right in every scored case.
  • Recall on real code (42 random crypto files, 600 uses listed blind): the scanner lists the right algorithm for a file in 66% of cases and finds 36% of individual uses. It misses libraries and type-level APIs it has no rules for (Java/Groovy JWK code, libtomcrypt, aws-lc-rs, age's hybrid API). The synthetic corpus (84-89%) overstates recall.
  • Server checks against openssl, ssh, ssh-keyscan, curl/jq and dig on 42 public endpoints: 338/339 facts agree (the one difference is Microsoft serving two key sets).
  • Commands: python tests/eval_real.py fetch|scan|sample|score|recall-score --run N, python tests/eval_probes.py run && python tests/eval_probes.py score. Details and limits: tests/real/RESULTS.md.

Metadata

Release files for p256check 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for p256check 0.3.0
File Size Uploaded Provenance Actions
p256check-0.3.0.tar.gz 436.6 kB Without provenance Details for p256check-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for p256check 0.3.0
File Interpreter ABI Platform Actions
p256check-0.3.0-py3-none-any.whl Python 3 none any Details for p256check-0.3.0-py3-none-any.whl

Total release size: 852.1 kB

Release files / p256check-0.3.0.tar.gz

Download URL p256check-0.3.0.tar.gz
Size 436.6 kB
Tags Source
SHA-256 checksum
How to use checksums
55b0508263a76e16fdc90e28de64a3382a6ebcf8945ca524e8b1d8208dee7643
BLAKE2b-256 checksum
How to use checksums
01a03616fa8c38068ebfe28e4b29554324d2477fd2c21aa0cdf3a56df74f8df8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / p256check-0.3.0-py3-none-any.whl

Download URL p256check-0.3.0-py3-none-any.whl
Size 415.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c64401710018456353534c7b4077dc6ae88d20d08c18ada04052f83ff4b830f6
BLAKE2b-256 checksum
How to use checksums
af622c7927a2dedb73eb8efee61448b223b372d177b0921f56fe74570187b05c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for p256check 0.3.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page