zeroclaw-labs/zeroclaw · error · anyhow::Error

MCP server `{}`: CA certificate file `{}` contained no certi

Error message

MCP server `{}`: CA certificate file `{}` contained no certificates

What it means

Error "MCP server `{}`: CA certificate file `{}` contained no certificates" thrown in zeroclaw-labs/zeroclaw.

Source

Thrown at crates/zeroclaw-tools/src/mcp_transport.rs:206

        }));

        if !std::path::Path::new(path).is_absolute() {
            bail!(
                "MCP server `{}`: TLS CA certificate path must be absolute: `{}`",
                config.name,
                path
            );
        }

        let pem = load_tls_ca_pem(config, path)?;
        let certificates = reqwest::Certificate::from_pem_bundle(&pem).with_context(|| {
            format!(
                "MCP server `{}`: invalid PEM CA certificate at `{}`",
                config.name, path
            )
        })?;
        if certificates.is_empty() {
            bail!(
                "MCP server `{}`: CA certificate file `{}` contained no certificates",
                config.name,
                path
            );
        }
        for certificate in certificates {
            builder = builder.add_root_certificate(certificate);
        }
    }

    builder.build().with_context(|| {
        format!(
            "failed to build HTTP client for MCP server `{}`",
            config.name
        )
    })
}

View on GitHub (pinned to 88bb9c8533)

Solutions

  1. Provide a CA certificate file containing at least one valid PEM certificate.

When it happens

Trigger: Thrown at crates/zeroclaw-tools/src/mcp_transport.rs:206 when the library encounters an invalid state.

Common situations: See trigger scenarios.

Understand the failure class


AI-assisted analysis of zeroclaw-labs/zeroclaw@88bb9c8533 (2026-08-23). Data as JSON: /api/errors/a67a7f8aca535495. Report an issue: GitHub.