dotnet-api-docs icon indicating copy to clipboard operation
dotnet-api-docs copied to clipboard

Use X509Certificate2 constructor instead of Import (SYSLIB0026)

Open MiguelDomingues opened this issue 10 months ago • 1 comments

Summary

Import is marked as obsolete (SYSLIB0026):

'X509Certificate.Import(byte[])' is obsolete: 'X509Certificate and X509Certificate2 are immutable. Use the appropriate constructor to create a new certificate.'

MiguelDomingues avatar Apr 12 '24 11:04 MiguelDomingues

Tagging subscribers to this area: @dotnet/area-system-security, @vcsjones

Learn Build status updates of commit 2cae909:

:white_check_mark: Validation status: passed

File Status Preview URL Details
snippets/csharp/System.Security.Cryptography.X509Certificates/PublicKey/Overview/certinfo.cs :white_check_mark:Succeeded View

For more details, please refer to the build report.

For any questions, please: