How to implement TLS-ALPN in .NET C # for HTTP / 2 server

Does anyone know how I can implement TLS-ALPN in .NET?

I have implemented a basic HTTP / 2 server, but without TLS encryption. I searched on google, but I found resources only for C, Java or other languages, but nothing for .NET (C #)

+5
source share
1 answer

According to HttpTwo, a project on Github is currently not possible due to an error.

Update: it is not supported in .NET. You can vote for him here: https://visualstudio.uservoice.com/forums/121579-visual-studio-2015/suggestions/6264363-add-support-for-alpn-to-system-net-security-sslstr

quote:

The HTTP / 2 RFC states that secure connections must use ALPN to negotiate the protocol. Unfortunately, .NET SslStream does not have the ability to specify application protocols as part of TLS authentication, so it cannot support ALPN. There is the problem of tracking this on dotnetfix , however it does not seem to happen very soon (especially on mono and .NET 4.x).

+2
source

All Articles