Compat doc: GetECDsaPublicKey correctly handles brainpool curves (#1018)

* Create GetECDsaPublicKey-correctly-handles-brainpool-curves.md

* Update Documentation/compatibility/GetECDsaPublicKey-correctly-handles-brainpool-curves.md

Co-Authored-By: krwq <mordotymoja@gmail.com>

* Update Documentation/compatibility/GetECDsaPublicKey-correctly-handles-brainpool-curves.md

Co-Authored-By: krwq <mordotymoja@gmail.com>

* Update GetECDsaPublicKey-correctly-handles-brainpool-curves.md
pull/1028/head
Krzysztof Wicher 2019-04-29 12:07:07 -07:00 committed by Ron Petrusha
parent bfeb9cc29a
commit 3394bafc28
1 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
## ECDsaCertificateExtensions.GetECDsaPublicKey correctly handles Brainpool curves
### Scope
Edge case
### Version Introduced
4.8
### Source Analyzer Status
NotPlanned
### Change Description
Starting with .NET Framework 4.8, the <xref:System.Security.Cryptography.X509Certificates.ECDsaCertificateExtensions.GetECDsaPublicKey%2A?displayProperty=nameWithtype> method correctly handles all named curves supported by the OS, including the Brainpool elliptic curves.
### Recommended Action
If you encounter compatibility issues with this change on the .NET Framework 4.8 or a later version, you can opt-out of it by adding the following line to the \<runtime> section of the app.config file:
```xml
<appSettings>
<add key="Switch.System.Security.Cryptography.X509Certificates.ECDsaCertificateExtensions.UseLegacyPublicKeyReader" value="true" />
</appSettings>
```
### Affected APIs
* `M:System.Security.Cryptography.X509Certificates.ECDsaCertificateExtensions.GetECDsaPublicKey(System.Security.Cryptography.X509Certificates.X509Certificate2)`
### Category
Security