Open WebUI behind a corporate TLS proxy with a custom CA

When a corporate network intercepts HTTPS, Open WebUI calls to model providers fail with CERTIFICATE_VERIFY_FAILED. This page explains how to trust your organization's CA inside the container and verify the fix.

On this page

Why Open WebUI fails behind a TLS-intercepting proxy

Your corporate proxy re-signs outbound HTTPS traffic with an internal certificate authority (CA), so when Open WebUI calls a model provider, the TLS handshake fails with CERTIFICATE_VERIFY_FAILED. The container does not trust the internal CA, so it refuses the certificate the proxy presents. The error appears in the Open WebUI logs when you save a connection or send the first request, and it affects every provider reached through the proxy, whether that is a local Ollama server reached over an intercepted route, OpenAI, Anthropic or another OpenAI-compatible endpoint. The Open WebUI features docs list the provider connections in scope, so check which of them your users depend on before you test.

The fix is to give the container the trust chain it is missing. You mount your organization's root and intermediate CA certificates into the container, then set SSL_CERT_FILE to a bundle that contains both the public CA roots and your internal CA. This is a trust configuration change, not a verification bypass. Turning off verification, for example by setting insecure client options or disabling checks in the connection settings, would leave every outbound call open to tampering and would hide the problem from your security team. Ask your network or security team for the exact root and intermediate certificates the proxy uses, in PEM format, and confirm which bundle your proxy vendor expects you to trust.

Before you change anything, decide who owns the CA bundle, how it is rotated, and which hosts the proxy actually intercepts. Some destinations may be excluded from inspection by policy, and the proxy's exception list determines whether a given provider needs the custom CA at all. Plan for certificate expiry and proxy replacement, because a bundle that works today will fail silently after the CA changes. Confirm the image tag you deploy and test each provider connection from inside the running container, not from your workstation, since the workstation usually trusts the proxy already.

Which outbound connections need the custom CA

Open WebUI does not make one outbound call. Model providers, search services, identity providers, directories and data stores each use a different client library, and each may verify certificates against its own trust store. Trusting the CA on one path leaves the others unverified, so test every path from inside the running container.

Model provider APIs

Open WebUI connects to Ollama, OpenAI, Anthropic or any OpenAI-compatible endpoint from one interface. When a corporate proxy re-signs traffic to these hosts, model list calls and chat completions can fail with a certificate error, even though a browser on the same workstation loads the provider's site. A browser success proves nothing. Test each configured provider URL from inside the container, including the model list and a streaming completion, because those calls may use different HTTP settings.

Open WebUI features

Web search and tool servers

Web search providers, OpenAPI tool servers and speech or image services are outbound calls that often run from the Open WebUI backend, not from the user's browser. A service reachable from a laptop can still fail inside the container. Confirm whether each call is made server-side or from the browser, because browser-side calls depend on the proxy certificate on the user's machine. Check the exact hostnames in each tool and integration setting, since an internal tool server may be signed by a different internal CA.

OIDC identity providers

Open WebUI documents SSO through OIDC. The login redirect runs in the user's browser, but the back-channel calls that fetch discovery metadata, exchange the authorization code and read signing keys run from the server. A certificate failure there appears as a failed login, often with a message that does not name the certificate. Check the discovery URL from inside the container, then confirm the token and JWKS endpoints, since they may chain to a different CA.

Open WebUI features

LDAP directories

LDAP authentication is a separate client path with its own TLS handling. When the directory is reached over LDAPS or STARTTLS, the server must trust the certificate chain of the directory, which is often an internal CA that the proxy does not touch. Confirm the port and transport in use, then run a bind and a user search from the container with the same settings. An OIDC fix does not cover directory lookups.

Vector and storage backends

The scaling guide requires an external vector database for multi-process setups, and PostgreSQL and Redis hold shared state for replicas. Stores such as Qdrant, Milvus or Elasticsearch, when reached over TLS, use their own client libraries and may verify against a different trust store. Redis TLS, the sslmode setting on PostgreSQL and any S3-compatible file store each need checking. A failed backend may first appear as a knowledge base or session problem during normal use. Test connections from every replica.

Scaling Open WebUI

Options for trusting a custom CA

On a single host running Docker or Docker Compose, the usual approach is to place the corporate root and intermediate certificates in a PEM bundle on the host and mount it read-only into the Open WebUI container. You then point the Python and HTTP client libraries at that file, typically by setting SSL_CERT_FILE and, where the outbound calls use requests, REQUESTS_CA_BUNDLE. The bundle stays in your configuration repository, so changes are visible in version control.

  • Maintenance: The bundle is a host file, so every host needs the same update. Compose files pinned to one image tag keep the mount stable across upgrades.
  • Rotation: Replacing the file and restarting the container is usually enough. Plan the restart into your change window.
  • Auditability: A file in Git with a commit history gives a clear record of which authority was trusted and when.
  • Risk: Mounting a bundle that includes more roots than you need widens trust, so include only the inspection chain.
  • Verification: Run a request from inside the container to the upstream model endpoint and confirm the handshake succeeds.

Before you rely on this method, confirm the exact variable names and in-container mount path against the Open WebUI version you run, and check the Open WebUI features documentation for any outbound settings it exposes.

How to mount the CA store and set SSL_CERT_FILE

This sequence gives Open WebUI's container a complete trust store that includes the corporate interception CA, so outbound HTTPS calls to model providers succeed without disabling certificate verification.

  1. Request the root and intermediate CA certificates

    Ask the security or network team for the root CA and any intermediate CA certificates that sign the proxy's interception certificates, in PEM format (text blocks beginning with BEGIN CERTIFICATE). Confirm with them which certificate the proxy presents for the model provider hostnames you need, and ask for the file names and the expiry dates. Do not accept a private key in the transfer. Done means you hold one or more files that open as plain text and each contain a BEGIN CERTIFICATE block.

  2. Build a combined CA bundle

    On the Docker host, copy the public system bundle from a working container of the same image, then append the corporate root and intermediate certificates to it. Save the result as a single file such as corp-ca-bundle.pem in a directory the deployment owns, with restrictive file permissions. Keeping the public roots in the bundle matters because Open WebUI still calls public providers. Done means openssl x509 -in on each appended certificate returns its subject, and the bundle file contains more certificate blocks than the public bundle alone.

  3. Mount the bundle read-only into the container

    Add a bind mount to the Open WebUI service in docker-compose.yml that maps the host file to a path inside the container, such as /etc/ssl/certs/corp-ca-bundle.pem, with the :ro flag. Keep the mount in the same file as the pinned image tag so the configuration travels with the release. Verify the mapping with docker compose config before starting. Done means the rendered configuration shows the volume with the read-only flag and the container starts without a mount error.

  4. Set SSL_CERT_FILE and REQUESTS_CA_BUNDLE

    Set SSL_CERT_FILE to the mounted bundle path, because OpenSSL-based clients and many Python HTTPS libraries read it. Set REQUESTS_CA_BUNDLE to the same path for the requests library and components that depend on it. Confirm the exact variable behavior against the Open WebUI documentation for your release, and confirm which outbound clients your enabled features use. Do not set CURL_CA_BUNDLE or verification-disabling flags as a shortcut. Done means docker compose config shows both variables pointing at the mounted path.

  5. Restart the service with the new configuration

    Recreate the container so the new mount and environment variables take effect, for example with docker compose up -d open-webui. Environment variables and mounts are read at container start, so a plain configuration reload is not enough. Check the startup log for errors about certificates or the bundle path. Done means the container reports a running state and the log shows normal application startup without TLS errors.

  6. Test an HTTPS request from inside the container

    Open a shell in the running container with docker compose exec open-webui sh and run a request to a model provider endpoint you actually use, with verification enabled. Use a tool available in the image, such as Python's requests library or curl if installed, and confirm the variables are visible with env. Repeat the test for each internal model server reachable through the proxy. Done means the request returns an HTTP response without a CERTIFICATE_VERIFY_FAILED error, and the response is not rejected by a certificate chain error.

  7. Confirm a model response in the interface

    Sign in to Open WebUI, open the model connection settings, and run the connection check for each provider. Then send a short prompt to one model and confirm a complete streamed reply. Failures that appear only in the browser often point to a second client, such as a tool server or search provider, that uses a different trust store. Record the test date and the bundle file version in your change record. Done means every configured provider returns a successful check and a test prompt completes.

How the proxy re-signs traffic and where the bundle is read

The request starts in the Open WebUI container, where the Python HTTP client reads the CA bundle named by SSL_CERT_FILE before it opens a connection to the provider. The corporate TLS proxy sits on the path and presents a certificate signed by the internal CA, not the provider's public CA. The handshake succeeds only if the bundle the client reads contains that internal root. Check the mount path inside the container and confirm that the proxy's root is the one the client actually trusts.

Trust boundary where the proxy re-signs provider certificates and where the CA bundle is read.

Security risks of trusting an interception CA

Trusting a corporate interception CA makes every certificate that CA signs acceptable to the container, so the trust has to be narrow and deliberate. The cards below cover the limits that keep a custom CA from weakening outbound HTTPS for Open WebUI and the model providers it calls.

Scope the CA to the proxy

Add only the root or intermediate certificate that your proxy uses to re-sign traffic, not a general enterprise root bundle. Any certificate chained to a trusted root can impersonate a model provider to Open WebUI, so the narrower the anchor, the smaller the attack surface. Confirm with your network team which CA issued the proxy certificate for each destination Open WebUI reaches.

Keep verification enabled

Fix the trust store, not the client. Setting options that skip TLS verification, such as disabling checks in the Python client or in the proxy settings, removes the protection for every outbound call, including API keys and prompt content sent to providers. Test the final configuration by confirming that a request to an untrusted endpoint still fails.

Audit the bundle contents

Review every certificate in the file mounted into the container before you deploy it. Extra roots widen trust without a stated need, and an old or retired root may remain in a bundle copied from a workstation. Keep the bundle under version control with a named owner, and record the issuer, subject and expiry for each entry.

Protect the proxy private key

The proxy's signing key is the strongest asset in this setup, because anyone holding it can mint certificates that Open WebUI will accept. Restrict access to the proxy host, store the key in a hardware-backed or managed secret store where possible, and rotate it on a documented schedule. Ask your security team who can export or copy the key and how those actions are logged.

Keep secrets out of the image

Do not bake the CA bundle's private material, API keys or the Open WebUI secret key into a container image. Mount the public CA file as a read-only volume and supply credentials at runtime through your platform's secret mechanism. An image that carries secrets is copied to every registry and host that pulls it, and rebuilding it to rotate a key is slow.

Log proxy errors without prompts

Certificate failures show up as errors such as CERTIFICATE_VERIFY_FAILED, and these logs help diagnose broken trust. Capture the error type, destination host and timestamp, but make sure request bodies, prompts and responses are not written to the same log stream. Review your logging configuration with your security team, since verbose debug settings can record more than you intend.

Questions teams ask before fixing a TLS proxy issue

What drives the cost of fixing a CERTIFICATE_VERIFY_FAILED error behind a corporate proxy?

The cost is driven by how many places need the corporate root CA, not by the error itself. The main inputs are the number of model providers Open WebUI calls, the number of environments (development, staging, production), whether your container images are built in-house or pulled from a public registry, and how often the proxy certificate rotates. Each additional environment or image build repeats the same CA mount and SSL_CERT_FILE configuration. Ask any partner for a quote that lists the environments, the image build path and the rotation process as separate line items, so you can see which parts are one-time and which recur.

How long does a custom CA fix take?

The configuration change itself is small: export the root CA, mount it into the container and point SSL_CERT_FILE at it. Most of the elapsed time goes to getting the correct certificate from the network team, confirming which chain the proxy presents for each provider endpoint, and testing every environment. No duration is given here because it depends on how quickly your network and security teams can supply and approve the certificate. Ask for the schedule in the written scope, with the approval steps named.

What do the security and network teams need to provide?

You need the correct root and any intermediate CA certificates in PEM format, the list of outbound hostnames Open WebUI must reach, and confirmation of which certificate the proxy presents for each of them. The security team should approve which CA is trusted inside the container and who may change it. The network team should confirm whether the proxy inspects traffic to every provider or only some, and whether the proxy has an exception list. Agree on who receives notice when the proxy certificate changes.

Can our own team fix this without an outside partner?

Often yes, for a single environment with one or two providers and an engineer who can read a TLS handshake. Use openssl s_client to see the chain the proxy presents, then confirm the fix with a request from inside the running container. A partner adds value when several environments, a custom image build, or an audit trail need to be covered. Either way, the work is smaller than a full deployment, so decide based on how many environments and images are involved.

Should we trust the proxy CA for every outbound request?

Trust the corporate root only as far as your security team approves. Adding a CA to the container's trust store lets Open WebUI accept any certificate signed by that CA, including for hosts you did not intend to reach. Limit outbound access with network policy where possible, and record the CA's origin and owner in your change log. Scope the trust decision to the workload, not the whole host.

What happens when the proxy certificate expires or is replaced?

Requests to model providers start failing with the same verification error once the old chain is no longer presented. The fix is to obtain the new root or intermediate certificate, replace the mounted file, and restart the container. This is recurring work, so include it in your operations process. Ask the network team for advance notice of changes, keep the CA file in version control or a secrets store, and test a request to each provider after every rotation. Do not disable certificate verification as a shortcut, because that removes the protection TLS provides for every provider call.

Does a custom CA fix affect the Open WebUI license or support terms?

No. Mounting a CA certificate is a deployment configuration change and does not alter the Open WebUI License. Licensing questions depend on the release you run and your user count. Versions through v0.6.5 are under BSD-3-Clause, and later releases are under the Open WebUI License, which adds a branding protection clause for deployments above 50 users in any rolling 30-day period. Check the Open WebUI License page before you plan upgrades.

What evidence should we keep for a compliance review?

Keep the approved CA source, the change record that added it, the configuration files showing the mount and SSL_CERT_FILE setting, and test results from each environment. Record who approved each rotation. DeployOpen prepares these controls and evidence for assessments, but independent auditors and certification bodies issue any audit report or attestation.

What to confirm in your environment

The steps for a custom CA depend on the Open WebUI version, the install method and what your proxy actually intercepts. The cards below list the items to verify in your own environment rather than assume, because each one changes which variables, mounts and tests you need.

Variables read by your version

Confirm which CA-related environment variables the installed Open WebUI release and its bundled dependencies read, such as SSL_CERT_FILE and any variables used by HTTP client libraries. Set them in a test container, then trigger a call to an outbound provider and check the logs for the same CERTIFICATE_VERIFY_FAILED error. Variable handling can differ between releases, so check the version you actually run, not the one in a blog post.

Latest release listed
v0.12.3
Open WebUI releases

One CA or a chain of CAs

Ask your network team whether the proxy re-signs traffic with a single root CA or with an intermediate issued by a different internal CA. Your bundle must contain every certificate the client needs to build the trust path, and the bundle must be the one the proxy uses at the time of testing. A bundle that includes only the leaf or only the intermediate will still fail intermittently across providers.

Pip-based installs

If you run pip install open-webui and open-webui serve on a VM, the CA bundle path is set by the host, not by a container image. Confirm which Python interpreter runs the service under systemd, which certificate store that interpreter reads, and whether a system-wide bundle update reaches it. Test the service after an OS package update, since a refreshed system store can change trust behavior.

Providers blocked by the proxy

Some corporate proxies block or categorize specific model provider domains, and a custom CA does not fix a block. List every provider you plan to connect, including Ollama hosts, OpenAI, Anthropic and any OpenAI-compatible endpoint, then test each from the Open WebUI container. Separate a trust failure from a policy block by reading the error text and checking the proxy's allow list with the network team.

Upgrades and baked-in images

If the CA bundle is baked into a custom image, every Open WebUI upgrade rebuilds that image, so the bundle must be rebuilt, retested and re-signed for the new base. If the bundle is mounted at runtime, confirm that the upgrade keeps the mount path and variables unchanged. Read the release notes for each version you plan to move to before changing the pinned tag.

Open WebUI features

How DeployOpen works on this

DeployOpen plans, builds, tests and hands over self-hosted Open WebUI inside your own infrastructure, including the trust store, proxy path and certificate handling that corporate TLS interception affects. Each engagement starts from a written scope, so the CA chain, outbound endpoints and verification steps are agreed before any change is made.

How we scope

  • Inventory every outbound HTTPS endpoint Open WebUI calls, including model providers, search and tool servers, and package sources.
  • Confirm which intermediate and root CA certificates your security team will supply, and in what format and trust chain.
  • Agree in writing which containers, base images and restart procedures are in scope for the custom CA change.

How we build

  • Mount the approved CA bundle read-only into the Open WebUI container and set SSL_CERT_FILE and related variables for each outbound client.
  • Verify each provider connection and the admin model settings from inside the running container, not only from the host.
  • Check that the CA change survives image upgrades and container recreation, and that no verification flags are disabled to get past errors.

How we hand over

  • Deliver the compose or Helm configuration, the CA bundle location and a documented rotation procedure for expiring intermediates.
  • Provide a runbook listing the endpoints tested, the expected error messages and the commands used to confirm a healthy trust chain.
  • Document which parts of the setup depend on your proxy vendor, so your team knows what to re-check after a proxy change.

How we support

  • Fixed-scope engagements cover the agreed CA and proxy work, with deliverables and timelines confirmed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer for teams that change proxies or Open WebUI versions often.
  • Retesting after an Open WebUI upgrade or a proxy certificate renewal is part of the handover plan we agree with you.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.