Python Package support for OpenAI's Certificate #1664

Closed
opened 2025-11-11 14:49:35 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @endamaco on GitHub (Aug 2, 2024).

Bug Report

Description

Bug Summary:
I've installed the python package
pip install open-webui
open-webui serve
But when I enter the OpenAI's key and try to connect I can see the following error in the console

ERROR:apps.openai.main:Connection error: Cannot connect to host api.openai.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)')]

Steps to Reproduce:
Open WebUI (manual python, not docker). Go in admin panel -> settings -> connections -> enter OpenAI API's key and click "Verify Connection"

Expected Behavior:
Connect to OpenAI's endpoint

Actual Behavior:
An error with SSL certificates prevent it to work. If I open the OpenAI's endpoint in a browser I don't have any issue with certificates

Environment

  • Open WebUI Version: 0.3.10

  • Ollama (if applicable): N/A

  • Operating System: MacOS

  • Browser (if applicable): Chrome

Installation Method

Manual Installation

Originally created by @endamaco on GitHub (Aug 2, 2024). # Bug Report ## Description **Bug Summary:** I've installed the python package `pip install open-webui` `open-webui serve` But when I enter the OpenAI's key and try to connect I can see the following error in the console > ERROR:apps.openai.main:Connection error: Cannot connect to host api.openai.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)')] **Steps to Reproduce:** Open WebUI (manual python, not docker). Go in admin panel -> settings -> connections -> enter OpenAI API's key and click "Verify Connection" **Expected Behavior:** Connect to OpenAI's endpoint **Actual Behavior:** An error with SSL certificates prevent it to work. If I open the OpenAI's endpoint in a browser I don't have any issue with certificates ## Environment - **Open WebUI Version:** 0.3.10 - **Ollama (if applicable):** N/A - **Operating System:** MacOS - **Browser (if applicable):** Chrome ## Installation Method Manual Installation
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#1664