← All recipes
Moderne licensed

Find ServicePointManager TLS configuration

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.NetFramework.FindServicePointManagerSecurityProtocolArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

Finds usages of System.Net.ServicePointManager whose TLS behavior changes when retargeting to .NET Framework 4.6+ (SchUseStrongCrypto) and 4.7+ (SystemDefault protocol). The opt-out switches are Switch.System.Net.DontEnableSchUseStrongCrypto and Switch.System.Net.DontEnableSystemDefaultTlsVersions.

Single recipesearchdotnetnet-frameworknetworkingtlsProprietary

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.NetFramework.FindServicePointManagerSecurityProtocol

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

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