mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
* Implement RSACertificateExtensions.CopyWithPrivateKey(). #14152. * RSACertificateExtensions.CopyWithPrivateKey(): implement. Since `RSACertificateExtensions` lives in `System.Core` and only `mscorlib` internals (but not `System` internals) are visible to it, we need to use a little trick here: * System.Security.Cryptography.X509Certificates.X509CertificateImpl: add new abstract methods CopyWithPrivateKey() and CreateCertificate(). * System.Security.Cryptography.X509Certificates.X509Certificate2Impl: sealed implement them here. The `httpcfg` tool, only checks whether the key is valid, so we don't really need to call `CopyWithPrivateKey()` (which requires us to take a dependency on `System.Core`). * Do the same thing in HttpListener.