Ir al contenido

Deprecated SSL/TLS protocol version (CA5397)

Esta página aún no está disponible en tu idioma.

Key dotnet.security.deprecated-ssl-protocol · Severity error · Category security · CWE CWE-327

Microsoft analyzer CA5397. Flags SslProtocols.Ssl2, Ssl3, Tls and Tls11. These versions have known attacks and are refused by modern servers; let the operating system choose, or require TLS 1.2 and later.

handler.SslOptions.EnabledSslProtocols = SslProtocols.Tls | SslProtocols.Tls11;
// leave the default: the operating system picks TLS 1.2 / 1.3
handler.SslOptions.EnabledSslProtocols = SslProtocols.None;