{"record":{"id":"c4a0733c290d6345","repo":"Hmbown/CodeWhale","slug":"tls-certificate-verification-cannot-be-disabled-fo","errorCode":null,"errorMessage":"TLS certificate verification cannot be disabled for provider {}; configure SSL_CERT_FILE with a trusted custom CA bundle instead","messagePattern":"TLS certificate verification cannot be disabled for provider (.+?); configure SSL_CERT_FILE with a trusted custom CA bundle instead","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/tui/src/client.rs","lineNumber":1558,"sourceCode":"        logging::info(format!(\n            \"API base URL: {}\",\n            redact_url_for_display(&base_url)\n        ));\n        if let Some(suffix) = &path_suffix {\n            logging::info(format!(\"API path suffix override: {suffix}\"));\n        }\n        if !http_headers.is_empty() {\n            logging::info(format!(\n                \"{} custom HTTP header(s) configured\",\n                http_headers.len()\n            ));\n        }\n        if insecure_skip_tls_verify {\n            logging::warn(format!(\n                \"TLS certificate verification cannot be disabled for provider {}; use SSL_CERT_FILE with a trusted custom CA bundle instead\",\n                api_provider.as_str()\n            ));\n            bail!(\n                \"TLS certificate verification cannot be disabled for provider {}; configure SSL_CERT_FILE with a trusted custom CA bundle instead\",\n                api_provider.as_str()\n            );\n        }\n        logging::info(format!(\n            \"Retry policy: enabled={}, max_retries={}, initial_delay={}s, max_delay={}s\",\n            retry.enabled, retry.max_retries, retry.initial_delay, retry.max_delay\n        ));\n        if let Some(limit) = request_concurrency_limit {\n            logging::info(format!(\n                \"Provider request concurrency cap: {} in-flight request(s)\",\n                limit\n            ));\n        }\n\n        let http_client = Self::http_client_builder_with_auth_mode(\n            &api_key,\n            &http_headers,","sourceCodeStart":1540,"sourceCodeEnd":1576,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/tui/src/client.rs#L1540-L1576","documentation":"The client does not support disabling TLS certificate verification (`insecure_skip_tls_verify`) for a provider; when that flag is set it logs a warning and bails. Users needing custom trust must supply a CA bundle via the SSL_CERT_FILE environment variable instead of turning verification off.","triggerScenarios":"Setting `insecure_skip_tls_verify = true` (or an equivalent flag) on a provider config and starting the client; the check runs during client construction, before any request is sent.","commonSituations":"Corporate environments with TLS-intercepting proxies where users try to skip verification; self-signed certificates on internal gateways; copied config snippets enabling the flag.","solutions":["Remove `insecure_skip_tls_verify = true` from the provider config.","Export SSL_CERT_FILE pointing to a CA bundle that includes the cert(s) you need trusted (e.g. the corporate proxy CA) and restart the client.","If the endpoint uses a self-signed cert, add it to a CA bundle file and set SSL_CERT_FILE to that bundle."],"exampleFix":"# before (config.toml)\n[providers.corp-gateway]\nbase_url = \"https://gw.internal\"\ninsecure_skip_tls_verify = true\n\n# after (shell)\nexport SSL_CERT_FILE=/path/to/corp-ca-bundle.pem","handlingStrategy":"validation","validationCode":"fn check_tls_config(provider: &ProviderConfig) -> Result<(), String> {\n    if provider.insecure_skip_tls_verify {\n        return Err(\"use SSL_CERT_FILE with a custom CA bundle instead of disabling TLS verification\".into());\n    }\n    Ok(())\n}","typeGuard":null,"tryCatchPattern":"match client_result {\n    Err(e) if e.to_string().contains(\"TLS certificate verification cannot be disabled\") => {\n        eprintln!(\"Fix: unset insecure_skip_tls_verify and set SSL_CERT_FILE=<ca-bundle>\");\n    }\n    _ => {}\n}","preventionTips":["Never set insecure_skip_tls_verify; ship a CA bundle via SSL_CERT_FILE for corporate proxies.","Document SSL_CERT_FILE setup for self-signed internal endpoints."],"tags":["tls","security","config","ssl"],"backgroundTag":"unsupported-config-value","analyzedSha":"73e0f67d83c59909b571efdfc88c4bc28c309cb1","analyzedAt":"2026-09-22T01:30:00.501Z","contentChangedAt":"2026-09-22T01:30:00.501Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}