You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched on MSDN, Stack Overflow and this repository for almost five hours but I have no clue so I finally post it here.
Chrome 80.0.3987.106 is able to show the website while I'm unable to do it in .Net Core 3.1.
I don't own the server or the domain so I'm not sure how it is configured.
I've read the contributing.md file so I hope I do this correctly.
If I missed something feel free to close this and I apologize for the useless issue.
Issue
Whenever I run the following code I get a System.Net.Http.HttpRequestException : 'The SSL connection could not be established, see inner exception.' on line 28.
Inner Exception : AuthenticationException : Authentication failed, see inner exception..
Inner inner Exception : Win32Exception : The message received was unexpected or badly formatted.
According to SSLLabs this server, https://brickfy.com/, only supports TLS 1.3. TLS 1.3 is not yet supported on Windows / SChannel (tracked in #1720). Chrome is able to load it on Windows because it has it's own TLS/SSL implementation (BoringSSL).
@adesokanayo the resolution for this one was that the server required TLS 1.3 but the client OS didn't support it. Either the server needed to be configured to accept TLS 1.2 or the client was run on an OS that supports 1.3.
If you are facing the same error, I might suggest trying .NET 5 RC - the error message here is fairly generic and is reported for many reasons. .NET 5 gives better errors to help diagnose the specific issue.
If you are still having trouble then please feel free to open a new issue.
ghost
locked as resolved and limited conversation to collaborators
Dec 10, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I searched on MSDN, Stack Overflow and this repository for almost five hours but I have no clue so I finally post it here.
Chrome 80.0.3987.106 is able to show the website while I'm unable to do it in .Net Core 3.1.
I don't own the server or the domain so I'm not sure how it is configured.
I've read the contributing.md file so I hope I do this correctly.
If I missed something feel free to close this and I apologize for the useless issue.
Issue
Whenever I run the following code I get a
System.Net.Http.HttpRequestException : 'The SSL connection could not be established, see inner exception.'
on line 28.Inner Exception :
AuthenticationException : Authentication failed, see inner exception.
.Inner inner Exception :
Win32Exception : The message received was unexpected or badly formatted.
Attempts
ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator
in the HttpClientHandler, does nothingServerCertificateCustomValidationCallback = (sender, cert, chain, sslPolicyErrors) => { return true; };
in the HttpClientHandler, does nothingServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
in Main(), does nothingServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3;
in Main() can't be tested, Visual Studio says it's unavailable because it's obsoleteEnvironment
Thanks.
The text was updated successfully, but these errors were encountered: