Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET 9 marks X509Certificate2 as obsolete (syslib0057) #34296

Open
Ramstah opened this issue Dec 4, 2024 · 1 comment
Open

.NET 9 marks X509Certificate2 as obsolete (syslib0057) #34296

Ramstah opened this issue Dec 4, 2024 · 1 comment
Assignees

Comments

@Ramstah
Copy link

Ramstah commented Dec 4, 2024

Description

Documentation examples for .NET 9 include obsolete usage as per syslib0057.

Example:

builder.Services.AddDataProtection()
.PersistKeysToFileSystem(new DirectoryInfo(@"\server\share\directory"))
.ProtectKeysWithCertificate(
new X509Certificate2("certificate.pfx", builder.Configuration["CertificatePassword"]));

Page URL

https://learn.microsoft.com/en-us/aspnet/core/security/data-protection/configuration/overview?view=aspnetcore-9.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/security/data-protection/configuration/overview.md

Document ID

69818122-e47a-3fed-ea37-8009f66e2a5c

Article author

@tdykstra

Related Issues

@tdykstra
Copy link
Contributor

tdykstra commented Dec 4, 2024

@mkArtakMSFT who can we get to correct this code example?

@tdykstra tdykstra self-assigned this Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants