OpenAI-sublime-text icon indicating copy to clipboard operation
OpenAI-sublime-text copied to clipboard

CERTIFICATE_VERIFY_FAILED when using custom API provider via httpS

Open vjeantet opened this issue 11 months ago • 3 comments

Hello,

My custom OpenAi Provider (ollama) use https with a self-signed certificate.

When the plugin try to connect to it, an error pops up with "error OpenAi: CERTIFICATE_VERIFY_FAILED..."

How can I tell the plugin to not verify the ssl context of the connection ? (or better, set the path to ca bundle to use ?)

thanks a lot !

update: I found some reference, but not sure if it is the solution, and how to apply it to your code. : https://stackoverflow.com/questions/48908044/how-to-disable-ssl-verification-for-http-client-httpsconnection-class-in-python

vjeantet avatar Mar 02 '24 07:03 vjeantet