Review obsolete certificate collection imports (SYSLIB0057)

Proprietary

Find resolved public instance X509Certificate2Collection.Import overloads accepting binary content or file paths. Preserve calls while reviewing auto-detected format, append behavior, certificate/key ownership, storage flags and failure handling before selecting an explicit loader. Leave unrelated, unresolved and conditional snapshots unchanged.

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

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