Advertisement
Intermediate ASP.NET Core, HTTPS, Certificates & Transport Security

What TLS protocol versions and cipher suites should a modern ASP.NET Core application support, and how do you configure Kestrel to enforce a minimum acceptable TLS version?

Short answer

Modern best practice restricts supported protocols to TLS 1.2 and TLS 1.3 (disabling the older, cryptographically weaker TLS 1.0/1.1 and SSL entirely), configured via SslProtocols on Kestrel's HTTPS options -- cipher suite selection on newer .NET/OS combinations is largely…

Save ASP.NET Core mock interview
Advertisement
AModel answer
Modern best practice restricts supported protocols to TLS 1.2 and TLS 1.3 (disabling the older, cryptographically weaker TLS 1.0/1.1 and SSL entirely), configured via SslProtocols on Kestrel's HTTPS options -- cipher suite selection on newer .NET/OS combinations is largely managed by the underlying OS TLS stack (schannel on Windows, OpenSSL on Linux) rather than fully controllable from application code, so keeping the OS and .NET runtime patched is equally important for maintaining strong cipher suite support.
builder.WebHost.ConfigureKestrel(options => {
    options.ConfigureHttpsDefaults(o => {
        o.SslProtocols = SslProtocols.Tls12 | SslProtocols.Tls13;
    });
});
Real-world example
A security audit flags that an older deployment still had TLS 1.0 enabled as a legacy compatibility measure, and the team explicitly restricts Kestrel to TLS 1.2/1.3 only, immediately failing the audit's automated scan for weak protocol support and closing off known cryptographic vulnerabilities in the older protocol versions.
Likely follow-ups
  • How would you test which TLS versions and cipher suites a deployed endpoint actually supports (like using an external SSL testing tool)?
  • What legacy client compatibility trade-off do you make by disabling TLS 1.0/1.1 entirely?
Related topics