continue icon indicating copy to clipboard operation
continue copied to clipboard

Improve SSL certificate error documentation and troubleshooting

Open bdougie opened this issue 11 months ago • 4 comments

Problem

Users encountering SSL certificate errors (like "unable to verify the first certificate") may have difficulty finding the solution in the documentation, as seen in Discussion #8856.

Current State

The documentation does cover certificate configuration in several places:

However, the specific error messages users encounter aren't explicitly mentioned, making it harder to find via search.

Proposed Improvements

  1. Add a dedicated SSL/TLS troubleshooting section that includes common error messages:

    • "unable to verify the first certificate"
    • "self signed certificate in certificate chain"
    • "certificate verify failed"
    • "CERT_UNTRUSTED"
  2. Enhance the FAQ section with:

    • More detailed examples for enterprise/self-hosted endpoints
    • NVIDIA NIM specific configuration examples
    • Steps to diagnose certificate issues (using curl, openssl commands)
  3. Add provider-specific examples for common enterprise setups:

    • NVIDIA NIM endpoints
    • Self-hosted Ollama with HTTPS
    • Corporate proxy with custom CA certificates
  4. Include debugging steps:

    • How to test the endpoint with curl
    • How to export certificates from browsers
    • How to convert certificate formats (DER to PEM, etc.)
  5. Cross-reference certificate configuration in provider-specific docs (especially Ollama, since it's commonly self-hosted)

Example Addition to FAQ

### Common SSL Certificate Errors

#### "Unable to verify the first certificate"
This error occurs when connecting to HTTPS endpoints with self-signed or corporate certificates. 

**Solution**: Configure the certificate bundle path in your model configuration:

```yaml
models:
  - name: My Model
    provider: ollama
    model: my-model
    apiBase: https://my-secure-endpoint.com/v1
    requestOptions:
      caBundlePath: /path/to/certificate.pem

For Windows users: Install the win-ca extension to automatically use Windows certificate store.


## Benefits

- Reduces support burden from repeated certificate configuration questions
- Improves discoverability for users searching for specific error messages
- Provides clear, actionable solutions for enterprise users

## Related

- Discussion #8856
- Similar issues likely exist but are hard to search for due to varying error messages

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <[email protected]>

bdougie avatar Dec 15 '25 22:12 bdougie

Related SSL Certificate Issues

Based on a search of the repository, here are related issues about SSL certificate errors and configuration:

Self-signed certificate issues:

  • #1474 - VScode SSL self signed issue
  • #5115 - Trusted self-signed certificate works for chatting but not for auto-completion
  • #5484 - @Jira context: error "self signed certificate in certificate chain" - lost of global requestOptions used in fetch with YAML config
  • #5061 - "self signed certificate in certificate chain" in chat with My First Assistant

Unable to get local issuer certificate:

  • #3760 - Keep getting "unable to get local issuer certificate" while using extension in vscode
  • #3734 - Remote SSH - "FetchError" - unable to get local issuer certificate
  • #5578 - Unable to get local issuer certificate failure
  • #5791 - Unable to get local issue certificate

Configuration issues:

  • #889 - caBundlePath and verifySsl ignored for openai model
  • #5964 - [win][vscode]requestOptions: verifySsl: false in vscode config can't take effect
  • #4310 - need to disable ssl verification
  • #4635 - Disable SSL verification for remote continue server

HTTPS/TLS connection issues:

  • #9017 - Continue connection to a local server fails in https
  • #8470 - Continue fails to stablish mTLS connection with server
  • #6215 - Unable to disable SSL verification for sse or streamable-http MCP service

JetBrains specific:

  • #5830 - Full support for custom root CA certs - JetBrains
  • #4583 - connection error trying to hit a self-hosted openai API in JetBrains (Pycharm) plugin

continue avatar Dec 15 '25 22:12 continue

To add my thoughts - win-ca is no longer supported . I found this referenced in the above mentioned documentation, but it did not solve my problem. As its the only suggested resolution for Windows users, this is unhelpful.

alexnunley avatar Jan 23 '26 20:01 alexnunley

I’m putting together a small docs fix for this that adds the exact SSL/TLS error strings, curl + openssl troubleshooting steps, and clearer caBundlePath / clientCertificate guidance across the FAQ, troubleshooting page, and self-hosting guide.

fahe1em1 avatar Mar 12 '26 19:03 fahe1em1

The docs fix is live here: https://github.com/continuedev/continue/pull/11354 . It adds the exact SSL/TLS error strings, diagnostic steps, and clearer guidance for caBundlePath versus clientCertificate.

fahe1em1 avatar Mar 12 '26 19:03 fahe1em1