Hacker News new | ask | show | jobs
by binyu 41 days ago
One-liner to remove eMudhra from trust chain:

Mac OS

sudo security find-certificate -c "eMudhra" -p /Library/Keychains/System.keychain > /tmp/emudhra.pem && sudo security add-trusted-cert -d -r deny -k /Library/Keychains/System.keychain /tmp/emudhra.pem

Ubuntu Linux

sudo sed -i '/eMudhra/s/^/!/' /etc/ca-certificates.conf && sudo update-ca-certificates --fresh

Windows Powershell

Get-ChildItem -Path Cert:\LocalMachine\Root, Cert:\LocalMachine\CA | Where-Object { $_.Subject -like "eMudhra" } | ForEach-Object { Move-Item -Path $_.PSPath -Destination Cert:\LocalMachine\Disallowed -Force }

Windows cmd

certutil -store CA "eMudhra" | findstr "Serial" > nul && certutil -exportstore CA "eMudhra" %temp%\emudhra.p7b && certutil -addstore -f "Disallowed" %temp%\emudhra.p7b

1 comments

macOS users – I think you'll need to disable SIP; then it's easier to search for "emsign" directly in Keychain Access.
even with sip disabled, the System volume is still read only, and even if you remount it as rw, the System volume was signed, so any changes, even a single byte, will cause your mac to not boot unless you manually re-sign with a new snapshot.