Find obsolete X509Certificate2/X509Certificate constructors (SYSLIB0057)
Recipe ID
OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindX509CertificateConstructorsArtifactOpenRewrite.Recipes.CSharp.Migration.DotnetFinds usages of X509Certificate2 and X509Certificate constructors that accept binary content or file paths, which are obsolete in .NET 9 (SYSLIB0057). Use X509CertificateLoader methods instead.
Single recipesearchdotnetcryptographynet9Proprietary
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.Net9.FindX509CertificateConstructorsIf the recipe isn’t available locally, install it with:
mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet