Review obsolete certificate file factories (SYSLIB0057)

Proprietary

Find resolved public static X509Certificate.CreateFromCertFile/CreateFromSignedFile(string) calls. These factories accept auto-detected content through the legacy constructor. Preserve calls while reviewing content format, certificate/signer selection, key storage, base/derived runtime type and failure handling before choosing a loader. Leave unrelated, unresolved and conditional snapshots unchanged.

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

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