Incident report · October 2026 · Bug 2083449

Eight keys, 256 guesses

A trusted certificate company made eight secret keys that were too weak. Anyone with a laptop can find these keys in less than one second.

With these keys, a person can make a fake "ID card" for any website. This page tells you what occurred, how it occurred, and what you must do.

A padlock with a dial of only 256 positions 1–255 positions < 1 s to open
A good key is like a dial with 10115 positions. These eight keys had only 255.
Part 1

Words you must know

This report uses some technical names. Read these definitions first.

CertificateA digital ID card. A website shows it to your browser to prove its name.Example: the certificate for *.google.com
Certificate Authority (CA)A company that makes certificates. Browsers trust a small list of CAs. eMudhra is a CA in India.Examples: Let's Encrypt, DigiCert, Sectigo, eMudhra
Root certificateThe top CA certificate. Your browser or operating system keeps a copy of it.Examples: ISRG Root X1, emSign ECC Root CA – G3
Intermediate certificateA CA certificate that the root signs. It signs the website certificates.Examples: Let's Encrypt R11, EM DV TLS CA – G3B
Private keyA secret number. Its owner uses it to sign. Nobody else must know it.Example: the weak G3B key was the number 156
Public keyA number that all persons can see. It is inside the certificate. It shows that a signature is correct.Example: "Public Key: ECDSA P-384" in the certificate details
HSMHardware Security Module. A locked box that makes keys and keeps them safe.Examples: Thales Luna, Entrust nShield, Utimaco
RevocationAn instruction that tells software: "Do not trust this certificate now."Example: eMudhra revoked the 8 intermediates on 18 Oct
CSRCertificate Signing Request. A file that holds a new public key and a name. A CA signs it to make a certificate.Example: a file made with "openssl req"
Key ceremonyA recorded meeting with fixed steps. In it, a CA makes a new CA key.Example: eMudhra's ceremony on 30 April 2025
Cross-signA second CA also signs the same key. This gives a second path to trust.Example: Sectigo cross-signed the 8 eMudhra keys
Root programA team that decides which roots a product trusts. Mozilla, Google, Apple and Microsoft each have one.Example: Mozilla's list ships in NSS
Part 2

How root and intermediate CAs work

Your browser does not know each website. It knows only about 150 roots. It follows a chain from the website up to a root.

Chain of trust: root signs intermediate, intermediate signs website, browser checks the chain ★ Root emSign ECC Root CA – G3 Kept in your browser and operating system signs KEY Intermediate EM DV TLS CA – G3B (and 7 more) The weak private key is here signs Website yourbank.com Shows this card to your browser Browser checks each signature, up to a root it trusts → shows the padlock
If a person gets the intermediate's private key, that person can sign a card for any website. The browser will accept it.

One root, many intermediates

A CA has a small number of roots. Each root signs some intermediates. Each intermediate signs many customer certificates.

One root in an offline vault signs intermediates in an online data centre; intermediates sign website and program certificates OFFLINE VAULT · HSM ★ Root CA up to 25 years signs itself ONLINE · CA DATA CENTRE · HSM Intermediate · TLS DV Intermediate · TLS EV Intermediate · Code signing 5–10 years · signs each day 5–10 years · signs each day 5–10 years · signs each day shop.comblog.net bank.comtax.gov.in app.exedriver.sys websitewebsite websitewebsite programprogram Website certificates: 200 days maximum from March 2026, then 100 days (2027) and 47 days (2029)
The root key stays offline. Staff use it only a few times each year, in a ceremony. The intermediates do the daily work.
Root CAIntermediate CAWebsite certificate
Who makes the keyThe CA, in a key ceremonyThe CA, in a key ceremonyThe website owner, on the server
Who signs itIt signs itselfThe rootAn intermediate
Where the key isOffline HSM in a vaultOnline HSM in the CA data centreThe web server
How often usedA few times each yearMany times each secondEach connection
LifeUp to 25 yearsOften 5–10 years200 days maximum
In your deviceYes, in the root listNo, the website sends itNo, the website sends it
Real exampleISRG Root X1GTS Root R1Let's Encrypt R11Google WR2example.org*.google.com
eMudhra exampleemSign ECC Root CA – G3EM DV TLS CA – G3BNone issued

Why a CA uses two levels

If an intermediate key is lost, the CA revokes only that intermediate. The root continues to operate. If a root key is lost, all certificates below it fail, and each device must get an update.

Why new certificates need no update

Your browser does not keep a list of all certificates. It only checks the signatures up to a root. A certificate that a CA signs today works immediately.

How a website gets a certificate

  1. The website owner makes a key pair and a CSR on the server.
  2. The CA checks that the owner controls the domain. For OV and EV, the CA also checks the company.
  3. The intermediate HSM signs the certificate.
  4. The CA records the certificate in public Certificate Transparency logs.
  5. The owner installs the certificate and the intermediate on the server.
  6. Your browser gets both, checks the chain to a root, and shows the padlock.
Part 3

Types of certificates

Certificates are different in four ways: how much the CA checks, what the certificate is for, how many names it covers, and the type of key.

1. By how much the CA checks

Three ID cards: DV checks the domain, OV also checks the company, EV also does legal checks DV · Domain Validated example.com CA CHECKS ✓ you control the domain Minutes · automatic (ACME) OV · Organisation Validated example.com Example Pty Ltd CA CHECKS ✓ you control the domain ✓ the company exists 1–3 days EV · Extended Validation example.com Example Pty Ltd Reg. no · address · country CA CHECKS ✓ you control the domain ✓ the company exists ✓ legal and address checks Days to weeks
All three types give the same encryption and the same padlock in browsers now. eMudhra had a weak intermediate for each type (EM DV, EM OV and EM EV TLS CA).

2. By what the certificate is for

TypeUseExampleIn this incident
TLS serverProves the name of a website or APIhttps://bank.com6 weak intermediates
Code signingProves who made a program, and that nobody changed itWindows apps and drivers2 weak intermediates
TLS clientProves the name of a device or user to a server (mTLS)Company VPN, IoT devicesNot affected
S/MIME emailSigns and encrypts emailSigned company emailNot affected
Document signingSigns PDFs and formsIndian Digital Signature Certificates for tax formsNot affected

3. By how many names

  • Single name: www.example.com
  • Wildcard: *.example.com covers all first-level names
  • Multi-domain (SAN): one certificate for a list of names

4. By key type

  • RSA: 2048 to 4096 bits. Old and common.
  • ECC: P-256 or P-384. Smaller and faster.
  • The weak eMudhra keys were all ECC P-384. Its RSA keys were correct.
Part 4

What is necessary to make CA keys

A CA does not make its keys on a usual computer. The rules tell it to use special equipment, a secure room and a team of trusted persons.

A key ceremony room with an HSM, an offline laptop, smart cards, key custodians, a ceremony leader, an auditor, a camera, a script and a safe door · access log video records all steps Key custodians: each person holds one smart card HSM tamper seals offline laptop no network smart cards (3 of 5) Ceremony leader reads the script Auditor (witness) checks each step Written script approved before the day Safe backups and cards
A typical key ceremony room. No single person can use the HSM alone. A minimum number of card holders must be present.
HSMA certified, tamper-resistant box (FIPS 140-2/140-3 Level 3 or Common Criteria EAL4+). It makes the key and keeps it inside.
True random sourceA part of the HSM that makes unpredictable numbers. The private key comes from these numbers.
Offline computerA laptop with no network. It sends commands to the HSM.
Secure roomA locked room with an access log. Only approved persons can go in.
Trusted personsStaff with checked backgrounds. Each has one smart card. The HSM needs some of the cards (for example 3 of 5).
Written scriptA list of each command and step. The team must not change it on the day without approval.
Witness and videoAn independent auditor watches, or a camera records all steps.
Encrypted backupA copy of the key, locked with a key that only the HSM can use. It goes in a safe.
Part 5

The key generation process

The HSM makes a random private key. From the private key, it calculates the public key. The private key must never go out of the HSM.

Inside the HSM a random number becomes the private key and then the public key; the public key goes into a request that the root signs; two checks follow INSIDE THE HSM · THE PRIVATE KEY STAYS HERE Random number true random source Private key d 48 random bytes secret Public key d × G anyone can see CSR public key + name goes out Certificate the root signs the CSR Check A The key in the CSR is the key in the HSM Check B Test the public key for weakness
Check A would show that eMudhra used the wrong key. Check B (for example, with paranoid_crypto) would show that the key was weak. eMudhra did not do these checks.

Steps of a key ceremony

  1. Write the ceremony script. Get approval from management and from the auditor.
  2. Go into the secure room. Make sure that the tamper seals on the HSM and the laptop are not broken. Record the seal numbers.
  3. Start the video recording. The leader reads each step aloud. The auditor watches each step.
  4. Start the offline laptop. Make sure that it has no network connection.
  5. Activate the HSM. The key custodians put in their smart cards.
  6. Generate the key pair inside the HSM. Give the key a clear, unique label.
  7. Make the CSR from the new key.
  8. Make sure that the public key in the CSR agrees with the key in the HSM. Test the public key for weakness. eMudhra did not do this
  9. Sign the certificate. A root signs itself. For an intermediate, the offline root HSM signs the CSR.
  10. Make an encrypted backup of the key. Put the backup and the smart cards in the safe.
  11. Stop the HSM. Put new tamper seals on the equipment. Stop the recording.
  12. All persons sign the ceremony record. The auditor writes the key generation report.
Where eMudhra's process failed

eMudhra added an extra step to the script (the wrap and unwrap test). This step made a second, weak key with an almost identical label. In step 7, staff used the weak key. Nobody did step 8. A process audit checks that the team follows the script. It does not check the key itself.

Part 6

Who makes what, and how it is used

Five groups make the parts of the system. Each group has one job. The drawing shows how the parts move between them.

How the CA, the website owner, the root program, the CT logs and your browser exchange keys, requests, certificates and root lists Root program Mozilla · Google · Apple · Microsoft makes: the root list Certificate Authority Let's Encrypt · eMudhra makes: root + intermediate signs: certificates, CRLs Website owner shop.example.com makes: website key + CSR installs: certificate CT logs Google · Cloudflare · others keeps: public list of all certs Your browser Chrome · Firefox · a Go program checks: chain → root list 1 root + audit report 2 root list in updates 3 CSR 4 signed certificate 5 records the cert 6 cert + intermediate
1: The CA asks the root programs to accept its root. 2: The root programs put the root in their lists. 3–4: A website owner sends a CSR and gets a certificate. 5: The CA records it in public logs. 6: The website sends the certificate to your browser at each connection.
ItemWho makes itWhere it is keptHow it is used
Root key and certificateThe CA, in a key ceremonyKey: offline HSM. Certificate: in each deviceSigns intermediates a few times each yearISRG Root X1
Intermediate key and certificateThe CA, in a key ceremony. The root signs itKey: online HSM at the CASigns customer certificates all dayLet's Encrypt R11
Website key pairThe website owner, or a tool on the serverThe web serverProves in each connection that the server owns the certificatemade by Certbot
CSRThe website ownerSent to the CA onceAsks the CA for a certificateopenssl req
Website certificateThe CA (the intermediate signs it)The web serverSent to each browser that connectsshop.example.com
CT log entryThe CA sends it. Log operators keep itPublic logsAll persons can see all certificates. Chrome and Safari require itsearch at crt.sh
CRL and OCSPThe CAThe CA's web serversTells software which certificates are revokedcrl.emsign.com
Root list (trust store)The root programsBrowsers and operating systemsDecides which roots to trustMozilla NSS, Chrome Root Store
Fast block listThe browser makersPushed to browsers in hoursBlocks bad intermediates without a full updateOneCRL, CRLSet
Copied root listsPackage maintainersInside packages and programsThe root list for programs that are not browserscertifi, ca-certificates, webpki-roots

Example: a new website gets a certificate

  1. Priya owns shop.example.com. She runs Certbot on her server.
  2. Certbot makes a new key pair on the server. The private key stays on the server.
  3. Certbot sends a CSR to Let's Encrypt.
  4. Let's Encrypt asks Certbot to put a test file on the website. This proves that Priya controls the domain.
  5. The Let's Encrypt intermediate (for example R11) signs the certificate. Let's Encrypt records it in the CT logs.
  6. Certbot installs the certificate and the intermediate. Each 60 to 90 days, Certbot does all the steps again.
  7. You open the shop. Your browser gets the certificate and R11. It finds ISRG Root X1 in its root list and shows the padlock.
# Step 2 and 3, made by hand with OpenSSL
openssl ecparam -genkey -name prime256v1 -out shop.key   # private key: keep it secret
openssl req -new -key shop.key -subj "/CN=shop.example.com" -out shop.csr   # CSR: send to the CA

# Or let Certbot do all the steps
sudo certbot --nginx -d shop.example.com

Example: see a real chain

You can see the chain that any website sends. Run this command:

openssl s_client -connect www.google.com:443 -showcerts </dev/null | grep -E "^ *[0-9] s:|i:"

 0 s:CN = www.google.com
   i:C = US, O = Google Trust Services, CN = WR2          # the intermediate signed it
 1 s:C = US, O = Google Trust Services, CN = WR2
   i:C = US, O = Google Trust Services LLC, CN = GTS Root R1   # the root signed WR2

"s" is the subject (who the certificate is for). "i" is the issuer (who signed it). The root is not in the output, because your device already has it. The names can change when Google changes its certificates.

Example: the same parts in the eMudhra incident

Who made the error

The CA (eMudhra) made the intermediate keys in its key ceremony. The weak keys came from that step. The website owners, root programs and browsers did nothing wrong.

Who made the fix

  • Browser makers: block lists (OneCRL, CRLSet)
  • Root programs: removed the G3 root
  • Package maintainers: new certifi, ca-certificates, Go
  • CAs: eMudhra and Sectigo revoked the certificates
Part 7

How the error occurred

On 30 April 2025, eMudhra did a "key ceremony". In a key ceremony, staff use an HSM to make new CA keys. They made 24 intermediate certificates that day.

The 24 keys were in three series (A, B and C). Each series had RSA keys and ECC (P-384) keys. The eight weak keys are all the ECC keys in series B and C.

The HSM made a strong key and a weak key; staff used the weak key by mistake HSM Utimaco · FIPS 140-2 L3 script with error (wrap / unwrap test) Key 1: strong "EM-DV-G3B" Key 2: weak (< 256) "EM-DV-G3B_" Labels almost the same used by mistake Certificate request signed by eMudhra root and by Sectigo WEAK The key labels in this drawing are examples. They are not the real labels.
eMudhra's explanation: a script error made a second, weak key. Staff used the weak key to make the certificate requests.
  1. eMudhra changed its usual procedure. It added a test that wraps and unwraps keys, because these keys had to go to data centres in Europe and the USA.
  2. The HSM made the correct, strong ECC keys.
  3. An error in the script made a second set of ECC keys. These keys were very weak.
  4. The labels of the strong keys and the weak keys were almost the same. Staff used the weak keys by mistake.
  5. The eMudhra root signed the eight weak keys. In May 2025, Sectigo also cross-signed them.
Another possible cause

Some experts think that the HSM software wrote a "reference" key file to disk. This file only points to the real key inside the HSM. They think that a tool used this small reference number as a real private key. eMudhra has not yet given a full root-cause report.

The warning sign that eMudhra missed

In May 2025, the lists of revoked certificates (CRLs) from these six TLS intermediates had bad signatures (Mozilla bug 1970728). The real HSM key signed the lists, but the certificates had the weak public key. So the signatures did not agree. eMudhra then signed the lists again with the weak keys. It did not find the real problem.

Part 8

Why the keys were so weak

A P-384 private key must be a random number between 1 and a very large number. That large number has 116 digits. Nobody can guess it.

Each of the eight weak keys was a number less than 256. In computer memory, the key was all zeros, with only the last byte different.

Comparison of the size of a correct key and the weak keys Correct P-384 key: 48 random bytes about 10^115 possible keys · all computers on Earth cannot try them all eMudhra weak key: 47 zero bytes + 1 byte only 255 possible keys · a computer tries all of them in milliseconds
Each square is one byte. Grey squares are zero. One researcher found that the key of "EM DV TLS CA – G3B" was the number 156.

To find the key, a person makes the first 255 P-384 keys. Then the person compares each one with the public key in the certificate. One will agree. This takes less than one second.

Part 9

What an attacker can do with the key

Attacker signs a fake certificate and sits between you and the real website You Attacker fake Wi-Fi or bad router fake bank cert ✓ Real bank your password copied on
The attacker signs a new certificate for the bank's name with the leaked key. Old software shows the padlock and does not warn you.

What the attacker needs

The leaked key (easy to get), and control of your network connection. Examples are a fake Wi-Fi hotspot, a bad router, or DNS tricks.

What makes the risk lower

eMudhra says that the eight intermediates did not issue certificates to customers. Chrome found no fake certificates in the public Certificate Transparency logs. No attack is known at this time.

Part 10

Sequence of events

All times are UTC.

Part 11

Who is safe and who is at risk

Browsers get block lists in a few hours. Many other programs do not. They keep their own copy of the root list. They also do not check revocation. For them, only the removal of the root gives protection.

SoftwareStatusFixed version
Chrome, Firefox (desktop), Safari, EdgeProtectedAutomatic block list
Firefox for AndroidProtected after update158.0.2
NSS (Mozilla root list)Fixed3.131.1
Python certifiUpdate it2026.10.19
GoUpdate it1.27.3 / 1.26.10
Rust webpki-rootsUpdate and rebuild1.0.10
Debian ca-certificatesUpdate itDSA-6572-1
Containers, old phones, smart TVs, IoTAt riskRebuild or replace
Part 12

How Go fixed it

Go does not check revocation, and it has no root list of its own. So the Go team added a small block list to the standard library. The change has 42 new lines in three files. It removed no lines.

Titlecrypto/x509: distrust a handful of intermediates
Author · dateRoland Shoemaker · 19 Oct 2026, 14:20 −0700
FixesCVE-2026-111943 · issue #82345 · CL 851047
Backportsaa64342 (Go 1.26) · 90617fb (Go 1.27)
Released inGo 1.27.3 and Go 1.26.10 · 19 Oct 2026

See the full change on GitHub: github.com/golang/go/commit/7f86f957

Note: the code and the release notes do not name eMudhra. They only say "a handful of intermediates".

The idea: block the key, not the certificate

Go takes the public key part of each certificate, hashes it with SHA-256, and looks for the hash in a list of eight CERTIFICATE Subject: EM DV TLS CA – G3B Issuer: emSign Root TLS CA – G3 SubjectPublicKeyInfo algorithm EC P-384 + public key Signature … SHA-256 sha256.Sum256 ebed6475…5b5105 64 hex characters In the list of 8? map lookup
The SPKI is the part of a certificate that holds the public key. The eMudhra copy and the Sectigo cross-signed copy share the same key, so they give the same hash. Eight hashes block all 16 certificates, and any new certificate that uses one of those keys.

Where Go checks a chain

Go has three ways to check a certificate chain. The fix had to go into all three.

Verify sends the check to the Apple verifier, the Go verifier or the Windows verifier; all three now call containsDistrustedSPKIHash Your program calls http.Get or tls.Dial → x509 Certificate.Verify() macOS and iOS Apple checks the chain root_darwin.go +5 Linux, or your own pool Go builds and checks the chain verify.go +31 Windows Windows checks the chain root_windows.go +6 containsDistrustedSPKIHash(chain) true → remove the chain false → keep the chain
On macOS, iOS and Windows, Go asks the operating system to check the chain when you use the system roots. On Linux, or when you give your own root pool, Go checks the chain itself.
// verify.go — Verify() picks the verifier (code before the fix, abridged)
if runtime.GOOS == "windows" || runtime.GOOS == "darwin" || runtime.GOOS == "ios" {
    systemPool := systemRootsPool()
    if opts.Roots == nil && (systemPool == nil || systemPool.systemPool) {
        return c.systemVerify(&opts)   // returns early: Go's own checks never run
    }
    ...
}
// Linux, and any custom Roots pool, continue to Go's own chain builder

This is why one check in verify.go was not sufficient. On macOS and Windows, systemVerify returns before Go's own checks.

Walk through the change

Step 1. The block list verify.go · new

+// distrustedSPKIHashes contains hashes of SPKIs from certificates which
+// we don't consider to be trustworthy. We use these hashes to filter out
+// chains returned by Verify
+var distrustedSPKIHashes = map[string]struct{}{
+	"ebed6475c2c2d80fcb199f3fe8dd6e6b3ce60b77eb15d4e42c3dec0c6f5b5105": {},
+	"49dd353dc2b919a3770645117d0e60c16115e7d1bc259eefe734b00ea434fe5f": {},
+	"e0254c7fcdc265e2f0f8a428dabb75ab4ae039b4872d62f5ee57f0877d5a8a41": {},
+	"5c0660a2b164910d8ff589c18e14552e9e0ec237dcefe2cb736d41a4811f81a0": {},
+	"43bffa19d6ef651451f6841e019931e96f6f2eaeff28ab4b6f1ce4576de2717b": {},
+	"63ecefee431d49523bc1136c4e72d0206a477086caf606cd5cf025686c109cf8": {},
+	"ec4ffa1ad0ac88081314b7aaffef6a91f97cd57291bb5ba686c5415f5eb4f6b6": {},
+	"92c063d67e8f14db71d288e11266ffdaf69cbf115f7bab14f3bc2f68d25e0e30": {},
+}
  • There are 8 entries, one for each weak key.
  • Each entry is the SHA-256 hash of a certificate's public key part (SPKI), written as 64 hex characters.
  • map[string]struct{} is Go's usual way to make a set. Only the key is important. The value {} uses no memory.
  • A lookup in a map is very fast. The check adds almost no time to each connection.

Step 2. The check function verify.go · new

+// containsDistrustedSPKIHash checks if any of the certificates in the chain
+// have an SPKI whose hash is present in the distrustedSPKIHashes map.
+func containsDistrustedSPKIHash(chain []*Certificate) bool {
+	for _, c := range chain {                                   // each certificate: leaf, intermediates, root
+		h := sha256.Sum256(c.RawSubjectPublicKeyInfo)            // hash the raw SPKI bytes
+		if _, ok := distrustedSPKIHashes[hex.EncodeToString(h[:])]; ok {   // in the list?
+			return true                                          // yes: this chain is bad
+		}
+	}
+	return false
+}

The function looks at every certificate in the chain, not only the leaf. So a chain fails if it goes through one of the weak intermediates. The change also adds two imports, crypto/sha256 and encoding/hex.

Step 3. Go's own verifier verify.go · Verify()

candidateChains = slices.DeleteFunc(candidateChains, func(chain []*Certificate) bool {
    if !policiesValid(chain, opts) {                       // existing check
        invalidPoliciesChains++
        return true
    }
    if !anyKeyUsage && !checkChainForKeyUsage(chain, opts.KeyUsages) {   // existing
        incompatibleKeyUsageChains++
        return true
    }
    if err := checkChainConstraints(chain); err != nil {   // existing
        ...
        return true
    }
+   if containsDistrustedSPKIHash(chain) {
+       return true
+   }
    return false
})

if len(candidateChains) == 0 {
    ...
    err = CertificateInvalidError{c, NoValidChains, strings.Join(details, ", ")}
    return nil, err
}
  • Go first builds all possible chains from the leaf to a trusted root.
  • slices.DeleteFunc removes each chain for which the function returns true. Go already used it to remove chains with bad policies, key usage or name rules.
  • The fix adds one more rule at the end: remove the chain if it has a blocked key.
  • If no chain is left, Verify returns an error. Your program sees: tls: failed to verify certificate: x509: no valid chains built.
  • This path covers Linux, and every platform when you give your own VerifyOptions.Roots pool.

Step 4. macOS and iOS root_darwin.go · systemVerify()

	if len(chain[0]) == 0 {
		// This should _never_ happen, but to be safe
		return nil, errors.New("x509: macos certificate verification internal error")
	}

+	if containsDistrustedSPKIHash(chain[0]) {
+		return nil, CertificateInvalidError{c, NoValidChains, ""}
+	}

	if opts.DNSName != "" {
		// If we have a DNS name, apply our own name verification
  • Go asks Apple's Security framework to check the certificate. Apple gives back one chain, chain[0].
  • The fix checks that chain immediately after Go receives it. If the chain has a blocked key, Go rejects it, even if Apple accepted it.
  • Thus a Mac without Apple's 19 October update is also protected.

Step 5. Windows root_windows.go · systemVerify()

 import (
 	"bytes"
 	"errors"
+	"slices"
 	...

+	chains = slices.DeleteFunc(chains, containsDistrustedSPKIHash)
+
 	if len(chains) == 0 {
+		if topErr == nil {
+			return nil, CertificateInvalidError{c, NoValidChains, ""}
+		}
 		// Return the error from the highest quality context.
 		return nil, topErr
 	}
  • Windows gives back its best chain and some lower-quality chains. Go removes each chain that has a blocked key, and keeps the others.
  • If no chain is left, and Windows gave no other error, Go returns the "no valid chains" error.
  • Before the fix, if the best chain was good, it was always in the list. So an empty list always had an error in topErr. The new if is necessary because now Go can remove all chains itself.

Before and after

PlatformBefore Go 1.27.3 / 1.26.10After
Linux, containersAccepted a fake certificate if the old emSign G3 root was still in /etc/ssl/certsAt riskRejected, also with an old ca-certificatesSafe
macOS, iOSSafe only after Apple's block (19 Oct)Rejected by Go itselfSafe
WindowsSafe only after Microsoft's block (20 Oct)Rejected by Go itselfSafe
Own Roots poolAccepted if your pool had the G3 rootAt riskRejectedSafe

What the fix does not do

  • It does not remove the emSign G3 root. Other G3 certificates still work in Go until your OS or distro removes the root.
  • It does not add revocation checks. It blocks only these 8 keys.
  • It does not change binaries that you built before. You must rebuild them.
  • It adds no tests in this commit.

Check your programs

go version                  # go1.27.3 or go1.26.10 or later
go version -m ./myservice   # Go version used to build a binary

# SPKI hash of a certificate, same as Go
openssl x509 -in cert.pem -pubkey -noout \
  | openssl pkey -pubin -outform der \
  | sha256sum
Part 13

What you must do

For all users

  1. Update your browser.
  2. Update your phone and computer operating system.
  3. Do not ignore a certificate warning.
  4. Do not use public Wi-Fi for banking until your devices are updated.

For developers

  1. Run pip install -U certifi.
  2. Update ca-certificates on each server.
  3. Rebuild container images from new base images.
  4. Update Go, Node.js and the JDK. Bump webpki-roots.
  5. Find sites that use emSign G3 certificates. Replace those certificates.
Test your browser

Open emudhra.we-have-a-problem.com. If your browser is safe, all the test connections fail.

Part 14

The lesson

The HSM had a FIPS 140-2 Level 3 certificate. But a human error in a script made the keys weak. A certified box does not stop a bad procedure.

The weak keys were in public certificates for 18 months. A free tool found them in a few minutes. Nobody had done that simple check before. Experts now ask CAs to test each new public key for this type of weakness.

Sources