diegosouzapw/OmniRoute · error · Error
Failed to uninstall certificate
Error message
Failed to uninstall certificate
What it means
Error "Failed to uninstall certificate" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/mitm/cert/install.ts:479
async function uninstallCertMac(sudoPassword: string, certPath: string): Promise<void> {
const fingerprint = getCertFingerprint(certPath).replace(/:/g, "");
try {
await execFileWithPassword(
"sudo",
[
"-S",
"security",
"delete-certificate",
"-Z",
fingerprint,
"/Library/Keychains/System.keychain",
],
sudoPassword
);
console.log("✅ Uninstalled certificate from system keychain");
} catch (err) {
throw new Error("Failed to uninstall certificate");
}
}
async function uninstallCertLinux(sudoPassword: string, certPath: string): Promise<void> {
try {
await updateNssDatabases(null, "delete");
const config = getLinuxCertConfig();
const destFile = `${config.dir}/${LINUX_CERT_NAME}`;
if (fs.existsSync(destFile)) {
await execFileWithPassword("sudo", ["-S", "rm", "-f", destFile], sudoPassword);
}
try {
await execFileWithPassword("sudo", ["-S", config.cmd, "--fresh"], sudoPassword);
} catch {
await execFileWithPassword("sudo", ["-S", config.cmd], sudoPassword);View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/mitm/cert/install.ts:479 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- SSL/TLS and certificate errors — how TLS handshakes and certificate validation fail.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/8652e22fcd5d7dc0.
Report an issue: GitHub.