dotnet / dotnet/dotnet-api-docs

Add remark for RsaCng Key export behavior difference

Aperta
#6,935 1 commento 0 reazioni 1 assegnatario Rivendicata da @bartonjs Vedi su GitHub
area-System.Security Pri3 untriaged
Lingua principale
C#
Stelle
950
Fork
1.7k
Merge medio
2g 19h
PR unite (30g)
52

Descrizione

**Issue description**

Issue originally posted at https://github.com/MicrosoftDocs/feedback/issues/2261

Link to article:
https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.rsacng?view=netframework-4.6

Problem:
Refer to discussion on:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/10e6cf37-b8e8-497a-9ade-d7af9d9483c6/where-does-the-default-rsacngkeyexportpolicy-come-from?forum=netfxbcl

I found that on .NET Framework v4.6 or before, AllowPlaintextExport option is not passed when creating the key. This option is added as default on .NET v4.6.2 version of the source file.

Keys created without this option would encounter problem when the program try to export the private key after creation.

It would be great if we can add remark to corresponding versions to address this behavior difference.
**Target framework**

- [ ] .NET Core
- [X] .NET Framework v4.6.2+
- [ ] .NET Standard

This is runtime request to document runtime behavior change between versions, so SDK / compiler version is irrelevant.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.