dotnet / dotnet/aspnetcore

Http1AndHttp2 without TLS/SSL

Open
#43,836 8 comments 1 reaction 0 assignees View on GitHub
area-networking enhancement
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

Allow Kestrel to run Http1AndHttp2 over TCP without TLS/SSL.

Use case. Running Kestrel behind a TLS termination load balancer/router.

### Describe the solution you'd like

https://github.com/dotnet/aspnetcore/blob/main/src/Servers/Kestrel/Core/src/Internal/KestrelServerImpl.cs:164 should not just check for hasTls.

Possibly check for a flag indicating that, yes, I know that normally Http/2 will not be negotiated without TLS/SSL ALPN.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.