Self-signed and untrusted TLS certificates
Your assistant rejects the connection because the platform serves a self-signed or internal-CA TLS certificate. Fix it per assistant, without turning verification off.
Applies to: a Datasentinel platform that serves the /mcp endpoint with a self-signed certificate, or one issued by an internal CA the client host does not trust. Every assistant validates TLS certificates by default, so the connection is rejected before a single MCP tool can run.
Symptom
The datasentinel-* MCP server never appears in the assistant's server list, or shows as failed/disconnected. Depending on the client runtime, the underlying error looks like:
Node-based clients (Claude Code,
mcp-remote, VS Code, Cursor):DEPTH_ZERO_SELF_SIGNED_CERT,SELF_SIGNED_CERT_IN_CHAIN, orUNABLE_TO_VERIFY_LEAF_SIGNATURE.Python-based clients (custom agents):
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:…).Cloud-connecting assistants (Claude custom connector, ChatGPT web, Copilot Studio): the connector simply fails to add or verify, with no local log to read.
The sign-in never starts. The OAuth sign-in is the first thing the assistant's own HTTP client does: it fetches the discovery documents, registers itself, and later exchanges the code for tokens over HTTPS. With an untrusted certificate those calls fail before any login page opens, so an assistant that reports it cannot authenticate, or shows the server as needing authentication forever, is often showing a certificate problem. The browser that opens the login page must trust the certificate too, or it shows its own warning page.
To confirm the certificate is the cause, inspect what the platform actually serves:
openssl s_client -connect <public-host>:443 </dev/null 2>/dev/null \
| openssl x509 -noout -subject -issuer -datesA self-signed certificate shows the same value for subject and issuer. An internal CA shows your organization's CA as the issuer.
Three ways out, in order of preference
Serve a trusted certificate (recommended)
Using a valid TLS certificate is highly recommended, and it is the only option that works for every assistant at once. Provision one from a public authority such as Let's Encrypt, or issue one from your internal CA and install that CA in the trust store of every client host. Validation stays on everywhere, and every per-assistant workaround below becomes unnecessary.
See MCP Server Setup for where the certificate lives on the platform side.
Keep validation on, point the client at your CA
When replacing the certificate is not an option, the next best fix is to hand the client a PEM file containing your internal CA. The connection stays fully verified; the client just gains one extra trusted issuer. The variable to set depends on the client runtime: see the per-assistant table below.
Per-assistant reference
Each cell shows the documented option; the guide linked in the first column carries the full context and caveats.
NODE_EXTRA_CA_CERTS=<path to PEM> before launching, or the CA in the system trust store
NODE_TLS_REJECT_UNAUTHORIZED=0 claude (Anthropic advises against it)
NODE_EXTRA_CA_CERTS in the bridge's env block
"env": { "NODE_TLS_REJECT_UNAUTHORIZED": "0" } (scoped to the bridge process)
CODEX_CA_CERTIFICATE=<path to PEM> (falls back to SSL_CERT_FILE)
Not available
Trust the CA in the system trust store
Not available (both install methods run the same native binary, whose MCP connections ignore the Node variables; issue #4801)
SSL_CERT_FILE pointing at the CA, or enable_system_trust_store = true in config.toml once the CA is in the system trust store; or front the endpoint with a trusted reverse proxy
Not available (the upstream request was closed without one)
System trust store (read via http.systemCertificates), or NODE_EXTRA_CA_CERTS before launching
http.proxyStrictSSL: false (not scoped to MCP)
System trust store, or NODE_EXTRA_CA_CERTS before launching
NODE_TLS_REJECT_UNAUTHORIZED=0 cursor (recent versions may ignore it)
SSL_CERT_FILE=<path to PEM>
verify=False on the httpx client (as in the worked example, test setup only)
Cloud-connecting assistants have no workaround
Claude's custom connector, ChatGPT on the web, and Microsoft Copilot Studio connect to your platform from the vendor's cloud, not from your machine. For these, the /mcp endpoint and the sign-in endpoints on the same host must be reachable from the public internet with a valid, publicly-trusted certificate: there is no trust store you can edit and no bypass variable.
With a self-signed or internal-CA certificate, use a path that runs closer to the platform instead:
the local bridge method for the Claude desktop app;
a locally-running tool such as Visual Studio Code in place of Copilot Studio.
Trusting an internal CA at the host level
For the "system trust store" rows above, install your CA certificate on the client host:
The file must have a .crt extension and contain a PEM-encoded certificate.
From an elevated PowerShell:
Restart the assistant afterwards so it re-reads the store.
Verifying the fix
From the client host, a plain curl call with verification on must succeed before the assistant will connect:
406 (Not Acceptable) means healthy: the endpoint answered and TLS verification passed. If you still need -k to get an answer, the trust problem is still there.
Then reconnect from the assistant and run datasentinel status to confirm the MCP tools return live data.
Last updated