Untrust 2 ca-certificates

Context:

Commands to run to untrust 2 ca-certificates on Fedora, the time a new package is released. For the paranoids. Blacklist “emSign ECC Root CA - G3” and “Comodo AAA Services root”.

trust extract --filter=certificates --filter="pkcs11:id=%A0%11%0A%23%3E%96%F1%07%EC%E2%AF%29%EF%82%A5%7F%D0%30%A4%B4;type=cert" --format=pem-bundle cert302.pem
trust extract --filter=certificates --filter="pkcs11:id=%7C%5D%02%84%13%D4%CC%8A%9B%81%CE%17%1C%2E%29%1E%9C%48%63%42;type=cert" --format=pem-bundle cert303.pem
sudo mv cert*.pem /etc/pki/ca-trust/source/blocklist/
sudo update-ca-trust

Lots of good information on this site that announced the issue. https://emudhra.we-have-a-problem.com/

The web page will test that your browser is safe and provide you with curl commands to check that the OS is safe.

There are 12 bad certificates not 2.

The fix has been built for Fedora already. If the new ca-certificates package does not show up for you with a sudo dnf update --refresh ca-certificates you can pull from testing like this:

sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-56e14eb520

This is documented here on Bodhi: Making sure you're not a bot!

Hopefully these lightweights are prevented from ever issuing CA certs again.

“One of eMudhra’s certificate authority private keys is the number 4. Not a number that starts with 4, or the number 4 followed by a few hundred random digits, just, 4… Another one is 56, and another is 115”…

I’d not be in the slightest bit surprised if that’s how they were chosen.

These keys have been floating around for 17 months, and we have no idea if anyone ever compromised them.

WCGW.

Hi,

Thank you. Just followed the setup for my router for the time being - ca-certificates: blacklist "emSign ECC Root CA - G3" · openwrt/openwrt@4a68657 · GitHub

Not yet available, hence this workaround.

Good to know!

Yeah, it was quite a nice read yesterday in the security channel :classic_smiley:

This key has obviously proven useful. We should re-use it more often (<sarcasm end>).

It reminds me on the 1st-year-lecture of underestimated risks in crypto, such as random number and key generation :smiley:

I suppose they thought “What are the odds of trying 4”, either that or someone put test certificates live.

I wonder if the cause of the issue is so simple. I don’t have checked out this case in particular but just read the summaries I was provided with. But if I see this, my first guess is that someone used just a bad random number generator that is not eligible for cryptographic random numbers, and 4 might have been the result.

Realistic too. I have seen worse practices, also facilitating results like that

They also used 56 and 115, so if they were using RNG it produced staggeringly bad results. Apparently a buggy script and human error in using the “wrong file, because it had a similar name to the correct file” to sign with.

Incompetent at best, so no more CA status for these people.

These numbers, along with the 4, was what brought me to the idea. Like someone uses an old school non-crypto PRNG of python or so that is set to a small space of numbers. Human error is definitely included, its just not clear to me at what stage it was.

Apparently the HSM spits out 2 sets of certs with you do the key creation and
eMudhra use the wrong weak testing set not the strong production set.

During the ceremony, a key wrap/unwrap step produced a second, weak set of keys alongside the original strong keys. The weak keys were the ones published to the browser root stores. The issue went undetected for about 18 months, through two independent audit cycles. The researcher was able to reverse-engineer the weak keys, reportedly with the help of AI-assisted tooling.

Called it!

Importantly, none of the affected intermediate CAs were deployed in production, with the exception of one.

Quite a sentence!

The one to rule them all :classic_smiley:

Just for completeness :wink: