{"record":{"id":"a67a7f8aca535495","repo":"zeroclaw-labs/zeroclaw","slug":"mcp-server-ca-certificate-file-containe","errorCode":null,"errorMessage":"MCP server `{}`: CA certificate file `{}` contained no certificates","messagePattern":"MCP server `(.+?)`: CA certificate file `(.+?)` contained no certificates","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/zeroclaw-tools/src/mcp_transport.rs","lineNumber":206,"sourceCode":"        }));\n\n        if !std::path::Path::new(path).is_absolute() {\n            bail!(\n                \"MCP server `{}`: TLS CA certificate path must be absolute: `{}`\",\n                config.name,\n                path\n            );\n        }\n\n        let pem = load_tls_ca_pem(config, path)?;\n        let certificates = reqwest::Certificate::from_pem_bundle(&pem).with_context(|| {\n            format!(\n                \"MCP server `{}`: invalid PEM CA certificate at `{}`\",\n                config.name, path\n            )\n        })?;\n        if certificates.is_empty() {\n            bail!(\n                \"MCP server `{}`: CA certificate file `{}` contained no certificates\",\n                config.name,\n                path\n            );\n        }\n        for certificate in certificates {\n            builder = builder.add_root_certificate(certificate);\n        }\n    }\n\n    builder.build().with_context(|| {\n        format!(\n            \"failed to build HTTP client for MCP server `{}`\",\n            config.name\n        )\n    })\n}\n","sourceCodeStart":188,"sourceCodeEnd":224,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/crates/zeroclaw-tools/src/mcp_transport.rs#L188-L224","documentation":"Error \"MCP server `{}`: CA certificate file `{}` contained no certificates\" thrown in zeroclaw-labs/zeroclaw.","triggerScenarios":"Thrown at crates/zeroclaw-tools/src/mcp_transport.rs:206 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide a CA certificate file containing at least one valid PEM certificate."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}