emudhra-security-patch emudhra-patch finds eMudhra's G3B and G3C intermediate CA certificates in a computer's trust stores, along with the roots that issued them, and distrusts them. It runs on Windows and Linux and is one file with no runtime to install. The certificates it looks for are in badcerts.txt, a text file you can edit. The manual goes through every command, with what each part does and how to use it…
Distrusts eMudhra's G3B and G3C intermediate CAs and their emSign roots in Windows and Linux certificate trust stores. Finds them, and any cross-signed copy with the same key, distrusts them, and rolls it all back with one command. The list is a plain text file you can edit. One file, no runtime to install.
emudhra-patch finds eMudhra’s G3B and G3C intermediate CA certificates in a computer’s trust stores, along with
the roots that issued them, and distrusts them. It runs on Windows and Linux and is one file with no runtime to
install. The certificates it looks for are in badcerts.txt, a text file you can edit.
The manual goes through every command, with what each part does and how to use it.
What it distrusts
Certificate
Kind
EM EV / OV / DV TLS CA – G3B (eMudhra BV)
TLS intermediates
EM EV / OV / DV TLS CA – G3C (eMudhra Inc)
TLS intermediates
EM OV CS CA – G3B (eMudhra BV), EM OV CS CA – G3C (eMudhra Inc)
code signing intermediates
emSign Root TLS CA - G3, self-signed and cross-signed
the root of the six TLS intermediates
emSign Root CS CA - G3, self-signed and cross-signed
the root of the two code signing intermediates
emSign ECC Root CA - G3
the root that cross-signed both, and the one Windows, Mozilla, Apple and the Linux distributions trust
Distrusting emSign ECC Root CA - G3 distrusts everything eMudhra issued under it, not only the certificates
above. To keep it, put # in front of its line in badcerts.txt.
It also distrusts any certificate it finds that has the same key as one on the list (another issue or
cross-signature of the same CA), and the certificates that issued those, up to the root.
Using it
Download the build for your system from Releases, unpack it, and run:
emudhra-patch scan # where each certificate is; changes nothing
emudhra-patch revoke # distrusts them (as administrator on Windows, root on Linux)
emudhra-patch restore # undoes revoke from the backup it made
emudhra-patch about # who makes this, and whether there's a newer version
emudhra-patch update # installs the newer version and its list: it asks first
scan exits with 2 when something on the list is still trusted, so a script or a monitoring check can use it.
revoke --yes runs without asking. --list <file> uses another list; the PEMs are read from certs/ beside it.
On Windows, --current-user changes only your own certificate stores and needs no administrator.
about and update ask api.github.com for the latest version, and nothing else ever connects to anything. update
downloads the release for this system, checks it against the release’s SHA256SUMS, and replaces the program, and
badcerts.txt and certs/ when they’re beside it. A list that was edited is kept as badcerts.txt.old. Nothing it
distrusted is touched: run scan afterwards to see the new list against this computer. The checksums come with the
release, so they catch a damaged download, not a tampered release. update --yes runs without asking.
On Windows
Each certificate is removed from every store that trusts it: Root, AuthRoot, CA, TrustedPublisher, TrustedPeople
and My, for the machine and for the current user. All of the listed certificates are then added to the machine’s
Disallowed store, which Windows checks before any other store. That holds even for a root this computer doesn’t
have yet: Windows Update fetches trusted roots only when they’re first needed, and once a root is in Disallowed
Windows won’t trust it after it arrives.
Removing a root from the current user’s Root store makes Windows ask for confirmation. Answer yes.
On Linux
It needs OpenSSL 3 (libssl.so.3), as .NET does. Fedora 45 and later, and Arch Linux, come with OpenSSL 4, which .NET
can’t use yet, so install OpenSSL 3 beside it first: sudo dnf install openssl3-libs on Fedora,
sudo pacman -S openssl-3 on Arch. Without it, the program says so and stops.
Distribution
What changes
Debian, Ubuntu
the root is deselected in /etc/ca-certificates.conf (a ! in front of it), then update-ca-certificates
Fedora, RHEL, Arch, openSUSE
every listed certificate goes into the p11-kit blocklist (/etc/pki/ca-trust/source/blocklist, /etc/ca-certificates/trust-source/blocklist, /etc/pki/trust/blacklist), then update-ca-trust
all of them
a listed certificate in the machine’s own anchors (/usr/local/share/ca-certificates, .../source/anchors) is taken out of its file
What it doesn’t touch
These keep their own lists of roots:
Firefox and Thunderbird, unless they use the system’s roots (security.enterprise_roots.enabled on Windows)
Java’s cacerts, unless it’s built from the system’s (Debian, Fedora and Arch do that)
Linux NSS databases (~/.pki/nssdb)
Docker images and other containers, which have trust stores of their own
The backup
revoke keeps a copy of everything it removes or changes, plus manifest.txt, a list of each change. restore
undoes the changes, last one first. The backup is in %ProgramData%\Strongthium\emudhra-security-patch
(%LocalAppData%\... with --current-user) on Windows and in /var/lib/emudhra-security-patch on Linux.
Changing the list
Each line of badcerts.txt is one certificate, with its fields separated by tabs:
Name Kind Reference Serial SHA-256 fingerprint
Certificates are matched by their SHA-256 fingerprint. Put a certificate’s PEM in certs/<SHA-256>.pem and it is
distrusted on computers that don’t have it yet. Without a PEM, it’s only removed where it’s found. emudhra-patch
checks that each PEM matches its fingerprint and serial.
tests revoke and restore on Ubuntu, Fedora, Arch and Windows (tests/);
publishes a release with the files and their SHA256SUMS.
Strongthium open-source tools
The other free, MIT-licensed tools from Strongthium Labs, each built by GitHub Actions from its source at github.com/strongthium:
Strongthium Folder Size Fast disk space analyzer for Windows. Every folder added up, largest first, as a tree, a treemap, the largest files and the space by type.
Strongthium Health Reminder Medication reminder, pill identifier and meal planner for Windows. Insistent reminders of pills, meals and water, with a picture of the very pill to take.
Strongthium Host Dossier Domain and IP lookup tool for Windows and Linux. WHOIS, DNS, TLS, open ports and every mail record of a domain or an address, in one report.
Strongthium Outbound Watch Outbound connection monitor for Windows. Where every program on your PC connects to, live and as history, and a warning when one goes somewhere new.
Strongthium RAW Convert Batch CR2 to PNG and TIFF converter for Windows. Folders of Canon RAW photos made lossless PNG or TIFF at full size, with the date, camera and GPS kept.
Strongthium Video Dispatch TikTok and YouTube uploader and video editor for Windows. One video queued to TikTok, YouTube and Shorts, cut and trimmed with Windows' own tools.
Strongthium WebDAV Server Self-hosted WebDAV server for Linux and Windows. Files by user or by path, Nextcloud-compatible, with bans and IP, ASN and country whitelists.
Strongthium Word Link Clue finder for word-association party games, for Windows. The board by colour in, a one-word clue out: the word that links the most of yours and keeps clear of the rest.
More from Strongthium
Strongthium Labs also makes software for running your own servers and Windows PCs, for talking to your customers, and for billing your hours, at strongthium.com:
Strongthium Guard Linux server firewall. Locks down your Linux servers, reads their logs and shuts out whoever attacks them, within seconds.
Strongthium Mail Self-hosted mail server for Linux and Windows. Receives, checks and sends your mail, and tells you exactly why it refused what it refused.
Strongthium Chat Self-hosted live chat for Linux and Windows. A chat on your websites and text messages in one inbox, answered from Windows or a browser.
Strongthium Remote Windows SSH client. SSH terminal, file manager, editor, server task manager, database client and remote desktop in tabs, in one program.
Strongthium SMS Twilio text messages for Windows. Sends and receives your own Twilio account's texts from Windows, and blocks senders by number or by country.
Strongthium Work Time tracking and invoicing for Windows. Logs the hours you work for each client, and turns them into invoices e-mailed as PDF, alone or with a team.
Strongthium Registry Windows registry editor. Shows what each key and value means, finds any key in seconds, and backs up every change before it's made.
Strongthium DotCF CFML server for Windows and Linux. Runs applications written for Adobe ColdFusion and Lucee on .NET, web server and all, in one program.
Strongthium Convey Video conferencing for Windows. Video, sound and text chat between Windows PCs, over the Internet, a dial-up modem or a cable.
评论