Find hardcoded protocol choices

Proprietary

Find TLS and SSL protocol versions chosen in source: members of SslProtocols (other than None and the obsolete Default) and of SecurityProtocolType (other than SystemDefault). Pinned protocol versions keep the application from following the operating system's defaults to TLS 1.3 and the post-quantum hybrid key exchanges negotiated over it.

OpenRewrite.CSharp.Recipes.Cryptography.FindHardcodedProtocolChoice
mod run . --recipe=OpenRewrite.CSharp.Recipes.Cryptography.FindHardcodedProtocolChoice

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.