emSign CA distrust in October 2026: CERTIFICATE_VERIFY_FAILED after certifi, uv and Go updates
Eight eMudhra intermediates under emSign ECC Root CA - G3 had their private keys compromised. certifi, uv and Go shipped fixes within days, and one partner API we call started failing TLS verification. Here is how we found which side of the problem each service was on and fixed both.
On 2026-10-20 the certifi project published an advisory: eight eMudhra intermediate CA certificates chaining to the root "emSign ECC Root CA - G3" had compromised private keys and had been revoked. uv published a matching advisory for its vendored root bundle, and Go landed a change in crypto/x509 to distrust the intermediates. Within a day we had two separate problems, and they pointed in opposite directions.
Problem one: stale trust. Most of our Python services run in container images that vendor certifi. Those images still trusted the root, so a certificate issued with a stolen key would have been accepted.
Problem two: a broken partner. A payment-status API run by a regional partner used a server certificate issued under one of the affected intermediates. As soon as a service picked up a fixed trust store, calls to that partner failed:
requests.exceptions.SSLError: HTTPSConnectionPool(host='status.partner.example', port=443):
Max retries exceeded with url: /v2/health (Caused by SSLError(SSLCertVerificationError(1,
'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer
certificate (_ssl.c:1010)')))
The Go service that called the same partner reported:
tls: failed to verify certificate: x509: certificate signed by unknown authority
Reproducing it
We confirmed which chain the partner served:
openssl s_client -connect status.partner.example:443 -servername status.partner.example \
-showcerts </dev/null 2>/dev/null \
| awk '/BEGIN CERT/,/END CERT/' > chain.pem
openssl crl2pkcs7 -nocrl -certfile chain.pem \
| openssl pkcs7 -print_certs -noout | grep -E 'subject|issuer'
The intermediate's issuer was emSign ECC Root CA - G3. Testing with an old and a new certifi in two throwaway virtualenvs reproduced the difference exactly: the old bundle verified, the new did not.
What we ruled out
Our own certificates. Ours come from a different CA. Nothing we serve chains to emSign.
A clock or SNI issue. The same request with
openssl s_clientsucceeded against the old bundle and failed against the new one from the same host.A proxy rewriting TLS. The failing calls went straight out through a NAT gateway.
Root cause
Two consequences of one CA incident. Images that had not been rebuilt still trusted an intermediate whose key an attacker might hold. Images that had been rebuilt correctly refused a partner certificate that was no longer trustworthy. The fix for the second is on the partner's side, not in our trust store.
What is happening under the hood
A TLS client accepts a server certificate if it can build a chain to a root in its trust store. Different runtimes use different stores:
Runtime | Default trust store | What changed in October 2026 |
|---|---|---|
Python | certifi bundle inside the venv | certifi |
uv | vendored | uv |
Go | OS store on Linux and macOS |
|
OS tools ( | distribution | updated by each distribution on its own schedule |
So a single Debian-based image can contain three trust decisions: the OS bundle, a certifi copy per virtualenv, and uv's own bundle. Updating one does not update the others.
Environment
Component | Version / value |
|---|---|
Python services | Python 3.12, |
Installer | uv 0.13.x in CI images |
Go service | Go 1.26, Debian bookworm base image |
Images | built weekly, some vendoring certifi from months earlier |
Who is affected
Everyone in two ways: clients with stale bundles still trust the compromised intermediates, and anyone calling a server whose certificate chains to them will see verification failures after updating. Check both before closing the ticket.
The fix
1. Inventory the trust stores in every image. For Python:
python -c "import certifi; print(certifi.__version__, certifi.where())"
grep -c 'emSign ECC Root CA - G3' "$(python -m certifi)"
For uv, the advisory says versions before 0.13.4 are affected:
uv --version
For Go, check the toolchain version used for the build, since the distrust lives in the standard library compiled into the binary:
go version -m ./bin/status-poller | head -1
We ran these in a CI job against every image tag currently deployed.
2. Upgrade and rebuild.
uv lock --upgrade-package certifi
uv sync --locked
Then rebuild images. The certifi advisory states it plainly: upgrade to 2026.10.19 or later and rebuild container images that vendor certifi. We also bumped uv in CI images to 0.13.4 and rebuilt the Go service with the patched point release of its toolchain line.
3. Fix the partner chain at the source. We sent the partner the chain output from step one and the advisory link. They reissued their certificate from another CA within two days. Until then we did not add the intermediate back to any trust store. For that one integration we queued requests and retried after the partner's change instead of weakening verification.
4. Avoid the shortcuts. These all "fix" the error and all are wrong here:
requests.get(url, verify=False) # disables verification entirely
os.environ["REQUESTS_CA_BUNDLE"] = "old-bundle.pem" # reintroduces the compromised trust
Alternatives and trade-offs
Use the OS trust store everywhere. Python can use the OS store through the
truststorepackage, and uv has a native TLS option. One store to update is easier to reason about, but it moves the update schedule to your base image vendor.Pin a private CA bundle. Useful for internal mTLS. For public endpoints it means you own CA incident response forever.
Certificate pinning for the partner. Strong, but painful when they rotate, and it would not have helped with a compromised intermediate that they themselves used.
How to test the fix
In a test image, run the certifi version check and confirm
2026.10.19or later.Call a known-good endpoint and the partner endpoint from the rebuilt image. The first should pass; the second should fail until the partner reissues, then pass.
Run
openssl verify -CAfile "$(python -m certifi)" -untrusted chain.pem chain.pemon the saved partner chain and confirm it fails with the new bundle.
Confirming in production
After the rebuild, the inventory job showed no image with certifi older than 2026.10.19 and no CI image with uv older than 0.13.4. The partner integration recovered on its own after their certificate change; the queued requests drained in about ten minutes.
Regression guard
The inventory job runs nightly and fails if a deployed image has a certifi or uv version below the advisory's fixed version.
Base images rebuild weekly even without code changes, so OS
ca-certificatesupdates land.External TLS failures for partner domains page the integration owner, not the on-call SRE, so the right person contacts the partner.
Security implications
Do not re-add a distrusted CA to get traffic flowing. A compromised intermediate key lets an attacker on the network path mint certificates for any hostname, so trusting it again exposes all your outbound TLS, not just calls to the partner. If an integration is critical, pause it or route it through a reviewed exception with an expiry date, and push the partner to reissue.
Prevention checklist
Know every trust store in your images: OS, certifi per venv, tool-vendored bundles, language runtimes.
Rebuild images on a schedule so CA updates land without code changes.
Track advisories for certifi, uv and your language runtime.
Never ship
verify=Falseor custom CA bundles as an incident workaround.Keep contact details for partners whose endpoints you depend on.
References
certifi advisory, emSign roots: https://github.com/certifi/python-certifi/security/advisories/GHSA-6q48-6c7w-9gw2
uv advisory, vendored CA store: https://github.com/astral-sh/uv/security/advisories/GHSA-hq85-5cpj-mr62
Go issue,
crypto/x509intermediate distrust: https://github.com/golang/go/issues/82345Python Discourse, information for Python users on the eMudhra emSign incident: https://discuss.python.org/t/information-for-python-users-regarding-emudhra-emsign-ca-certificate-security-incident/109576
Mozilla dev-security-policy discussion: https://groups.google.com/a/mozilla.org/g/dev-security-policy/c/0R3XLJL6FuE/m/0XofdebrAAAJ
Python
truststoredocumentation: https://truststore.readthedocs.io/
Add a label
Embed this post
<iframe src="https://hibug.me/emsign-root-ca-distrust-certifi-uv-go" width="700" height="420" frameborder="0" loading="lazy"></iframe>
I'm Technical Lead | Solution & Architect about Software Development, include Websites Application - Mobile App - Servers with Cloud & On-premises and Data/ML/AI.
Related Stories
Removing Google Cloud service account keys: Workload Identity Federation and GKE
Comments
0No comments yet. Be the first to comment!
Sign In to post a comment.