C#


ROSLYN.SECURITY.CA5397 : Do not use deprecated SslProtocols values (C#)

See Roslyn-Detected C# Warning Classes for more information.

Summary

Older protocol versions of Transport Layer Security (TLS) are less secure than TLS 1.2 and TLS 1.3, and are more likely to have new vulnerabilities. Avoid older protocol versions to minimize risk.

This check corresponds to Roslyn rule CA5397. For full rule details, see the Microsoft website: CA5397.

Properties

Class Name Do not use deprecated SslProtocols values (C#)
Significance security
Mnemonic ROSLYN.SECURITY.CA5397
Categories None
Availability Available for C# only.
Enabling Checks for this warning class are enabled by default. To disable them, add the following WARNING_FILTER rule to the project configuration file.
WARNING_FILTER += discard class="Do not use deprecated SslProtocols values (C#)"

Relevant Configuration File Parameters

The following configuration file parameters affect checks for this warning class.