CodeGPT
CodeGPT copied to clipboard
Self-signed certificate not verified for completion
What happened?
Using the "Custom OpenAI" provider.
I have two models setup. One for chat, and the other is a completion model (StarCoder2). Both use self-signed certificates that I have added to the trust list in the JetBrains "Server Certificates". I also tested with enabling the option "Accept non-trusted certificates automatically".
The chat model works fine. The completion model is throwing a ProxyAI error that the certificate is not verified.
Backend uses vllm as the model provider.
Relevant log output or stack trace
2025-04-18 16:37:28,584 [ 16456] SEVERE - #ee.carlrobert.codegpt.codecompletions.CodeCompletionEventListener$Companion - Hostname **** not verified:
certificate: details
DN: details
subjectAltNames: []
javax.net.ssl.SSLPeerUnverifiedException: Hostname **** not verified:
certificate: ****
DN: ****
subjectAltNames: []
at okhttp3.internal.connection.RealConnection.connectTls(RealConnection.kt:389)
at okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.kt:337)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:209)
at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
2025-04-18 16:37:28,585 [ 16457] SEVERE - #ee.carlrobert.codegpt.codecompletions.CodeCompletionEventListener$Companion - CLion 2025.1 Build #CL-251.23774.442
2025-04-18 16:37:28,585 [ 16457] SEVERE - #ee.carlrobert.codegpt.codecompletions.CodeCompletionEventListener$Companion - JDK: 21.0.6; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2025-04-18 16:37:28,585 [ 16457] SEVERE - #ee.carlrobert.codegpt.codecompletions.CodeCompletionEventListener$Companion - OS: Windows 11
2025-04-18 16:37:28,585 [ 16457] SEVERE - #ee.carlrobert.codegpt.codecompletions.CodeCompletionEventListener$Companion - Plugin to blame: Proxy AI version: 3.2.3-241.1
2025-04-18 16:37:28,585 [ 16457] SEVERE - #ee.carlrobert.codegpt.codecompletions.CodeCompletionEventListener$Companion - Last Action: EditorCut
Steps to reproduce
Try to use a self signed certificate when connecting to a custom openai provider with code completions.
CodeGPT version
3.2.3-241.1
Operating System
Windows