Skip to content

How to 'upgrade' a Microsoft.AspNetCore.Connections.ConnectionContext to a SslStream? #55071

Answered by DierkDroth
DierkDroth asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks again @davidfowl.

For anyone else running into that problem: I finally got it working by pulling together the files below from sources + tweaking task related code which still won't compile in DuplexPipeStream.cs. Not sure if this will hold water, but it's my only option for now. :-(

@danroth27 I wonder why it has to be so complicated with Kestrel to upgrade a socket to SSL?!? This was simple 'one-liner' with legacy System.Net.HttpListener...

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@davidfowl
Comment options

Comment options

You must be logged in to vote
6 replies
@DierkDroth
Comment options

@davidfowl
Comment options

@DierkDroth
Comment options

@davidfowl
Comment options

@DierkDroth
Comment options

Answer selected by DierkDroth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants