The SSL connection could not be established, see inner exception. #183
Replies: 6 comments 3 replies
-
If you need to use a self-signed SSL certificate you may want to pass your own HTTP client to the library. There was a topic in the discussion about this. |
Beta Was this translation helpful? Give feedback.
-
What OS are you running this on? |
Beta Was this translation helpful? Give feedback.
-
Update: I tried the same thing on Windows 10 and it worked ok, does this mean windows 11 uses > TLS1.3 version? could you force the NuGet package to use this TLS version? |
Beta Was this translation helpful? Give feedback.
-
I am seeing the same issue with a recently patched Windows Server 2012 R2 server. I've tried adding a standard line in VB.Net to force use of "TLS13":
just before OpenAI.GPT3.Managers.OpenAIService but I'm seeing the 'HandshakeFailure' failure message. Are there any other options besides updating the server OS which may not be possible. I've been developing on a Window 10 system for the past few weeks without issue and this is the first time the app has been off my system for testing. Thanks! |
Beta Was this translation helpful? Give feedback.
-
The problem is not with this repo, as I tried direct HttpClient
The code above worked on Windows10, Now i am using Windows 11, I tried this code to force TLS1.3:
and tried adding to the registry (https://www.asustor.com/en-gb/knowledge/detail/?id=&group_id=1011) see if any method works for you and update back, please. |
Beta Was this translation helpful? Give feedback.
-
I'm having the same situation. Did somebody find a solution? Such a weird issue |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
The SSL connection could not be established, see inner exception.
SocketException: An existing connection was forcibly closed by the remote host.
Your code piece
Beta Was this translation helpful? Give feedback.
All reactions