-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL connection could not be enstabilished in NET 6.0 #89
Comments
Hi @mircoianese , are you on Windows 11? I think that the problem could be this, probably related to TLS1.3 and related available cipher suites: |
Hi, thanks!
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello again,
I am still having issues with TLS Handshake when updating data, this time with NET 6.0 and 5.0.
The inner exeption is:
Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'.
I had this issue in the past with .NET 4.7, and I "solved" it by manually specifiying the TLS protocol with:
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;
, right before the HttpClient initialization.I was not expecting this to happen with newer versions of the framework, so I highly suspect it has something to do with my environment, but I couldn't fix it.
I have also tried to create a new simple project like this:
Created a new Console Application project targeting NET 6.0 and installed the dependencies from nuget, this is the structure:
Added this code in Program.cs:
I have also tried to clear the Nuget Cache
This time adding
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12
does not make any differenceSorry to bother you about this, but do you have any advice?
Thank you
The text was updated successfully, but these errors were encountered: