Skip to content

X509Certificate2 constructor remarks on acceptable data formats are incorrect #10436

@atykhyy

Description

@atykhyy

Type of issue

Missing information

Description

[Enter feedback here]
Constructors which take byte arrays or byte spans accept base64-encoded data on Windows, but not on Linux. This is a known issue in dotnet: dotnet/runtime#47005 Documentation ought to reflect this, so people don't waste their time chasing down long closed issues when their code throws an exception.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.x509certificates.x509certificate2.-ctor?view=net-8.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Security.Cryptography.X509Certificates/X509Certificate2.xml

Document Version Independent Id

b788c84c-ff5b-eb91-fee1-c09098d58696

Article author

@dotnet-bot

Metadata

Metadata

Assignees

Labels

Pri3Indicates issues/PRs that are low priorityarea-System.SecurityIssues related to security practices for .NET developers.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions