2018-03-29 23:42:59 +08:00
|
|
|
## X509Certificate2.ToString(Boolean) does not throw now when .NET cannot handle the certificate
|
2017-04-06 04:52:19 +08:00
|
|
|
|
|
|
|
### Scope
|
|
|
|
Edge
|
|
|
|
|
|
|
|
### Version Introduced
|
|
|
|
4.6
|
|
|
|
|
|
|
|
### Source Analyzer Status
|
|
|
|
Available
|
|
|
|
|
|
|
|
### Change Description
|
2017-04-21 02:19:05 +08:00
|
|
|
|
2018-03-29 23:42:59 +08:00
|
|
|
In .NET Framework 4.5.2 and earlier versions, this method would throw if `true` was passed for the verbose
|
2017-04-21 02:19:05 +08:00
|
|
|
parameter and there were certificates installed that weren't supported by the
|
|
|
|
.NET Framework. Now, the method will succeed and return a valid string that
|
2017-08-24 03:57:22 +08:00
|
|
|
omits the inaccessible portions of the certificate.
|
2017-04-06 04:52:19 +08:00
|
|
|
|
|
|
|
- [ ] Quirked
|
|
|
|
- [ ] Build-time break
|
|
|
|
|
|
|
|
### Recommended Action
|
2017-04-21 02:19:05 +08:00
|
|
|
|
|
|
|
Any code depending on
|
2018-03-29 23:42:59 +08:00
|
|
|
<xref:System.Security.Cryptography.X509Certificates.X509Certificate2.ToString(System.Boolean)?displayProperty=nameWithType>
|
2017-04-21 02:19:05 +08:00
|
|
|
should be updated to expect that the returned string may exclude some
|
|
|
|
certificate data (such as public key, private key, and extensions) in some cases
|
|
|
|
in which the API would have previously thrown.
|
2017-04-06 04:52:19 +08:00
|
|
|
|
|
|
|
### Affected APIs
|
|
|
|
* `M:System.Security.Cryptography.X509Certificates.X509Certificate2.ToString(System.Boolean)`
|
|
|
|
|
|
|
|
### Category
|
|
|
|
Core
|
|
|
|
|
2017-04-18 07:52:04 +08:00
|
|
|
<!-- breaking change id: 76 -->
|