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
It's not obvious how to control SNI when making requests via HttpClient.
We should document how to change the SNI that's used, or even avoid sending it.
We should for example show the following:
Not sending SNI at all
It should be possible, but it will take some work. You need to use SocketsHttpHandler.ConnectCallback to customize how connections are established. Inside the callback, construct the SslStream instance and authenticate with any SslClientAuthenticationOptions as you see fit and return it.
It's not obvious how to control SNI when making requests via HttpClient.
We should document how to change the SNI that's used, or even avoid sending it.
We should for example show the following:
ConnectCallback.Replated issues in YARP and runtime: dotnet/yarp#2036, dotnet/runtime#82165