Find obsolete X509Certificate2/X509Certificate constructors (SYSLIB0057)

Proprietary

Finds usages of X509Certificate2 and X509Certificate constructors that accept binary content or file paths, which are obsolete in .NET 9 (SYSLIB0057). Use X509CertificateLoader methods instead.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindX509CertificateConstructors
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindX509CertificateConstructors

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