Skip to content

Conversation

@wfurt
Copy link
Member

@wfurt wfurt commented Jul 20, 2020

This follow-up on #38202. ServerName is optional TLS extensions and handshake should work without in.
Currently SslStream will try to fabricate some name using atomic counter.
This change removes the behavior and if empty name is used, we would ship setting name.
Origin of this is far back in .NET Framework but proposed behavior seems to work fine on all supported OSes.
It also should be rare condition as in most cases client wants to connect to particular host and us OS logic for certificate verification.

fixes #38356

@wfurt wfurt requested a review from a team July 20, 2020 23:59
@wfurt wfurt self-assigned this Jul 20, 2020
@ghost
Copy link

ghost commented Jul 20, 2020

Tagging subscribers to this area: @dotnet/ncl
Notify danmosemsft if you want to be subscribed.

Copy link
Contributor

@scalablecory scalablecory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks fine once comments addressed.

@wfurt wfurt merged commit 25c222b into dotnet:master Jul 28, 2020
@wfurt wfurt deleted the noSNI_38356 branch July 28, 2020 19:14
Jacksondr5 pushed a commit to Jacksondr5/runtime that referenced this pull request Aug 10, 2020
* use empty server name

* fix merge

* feedback from review

* add missing file
@karelz karelz added this to the 5.0.0 milestone Aug 18, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate SslStream.AuthenticateAs*() with empty TargetHost

3 participants