← All recipes
Moderne licensed

Find obsolete SSL authentication enum types

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.Net10.FindSslAuthEnumTypesArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

Finds usage of ExchangeAlgorithmType, CipherAlgorithmType, and HashAlgorithmType from System.Security.Authentication. These enum types are obsolete in .NET 10 (SYSLIB0058). Use SslStream.NegotiatedCipherSuite instead.

Single recipenet10searchdotnettlsProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net10.FindSslAuthEnumTypes

If the recipe isn’t available locally, install it with:

mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet