Currently, in various areas in the WCF codebase, we have code like the following to clone an X509Certificate2
new X509Certificate2(certificate.Handle)
In Linux only - the private key does not get copied along.
Additionally, the copy constructor is not yet part of netstandard1.1. The copy constructor is slated to be added in netstandard2 (per dotnet/corefx#12214, dotnet/corefx#12240)
In the meantime, we do some calisthenics to achieve the copy (and hence have scenarios listed in #1295 work) but we do not want to have this live in our codebase forever. This issue tracks:
Currently, in various areas in the WCF codebase, we have code like the following to clone an X509Certificate2
In Linux only - the private key does not get copied along.
Additionally, the copy constructor is not yet part of netstandard1.1. The copy constructor is slated to be added in netstandard2 (per dotnet/corefx#12214, dotnet/corefx#12240)
In the meantime, we do some calisthenics to achieve the copy (and hence have scenarios listed in #1295 work) but we do not want to have this live in our codebase forever. This issue tracks: