Managing the most dangerous constructor ever

added by DotNetKicks
8/17/2022 4:08:42 PM

263 Views

The design of the X509Certificate2 is badly broken in terms of safety. If you load a certificate from disk or a byte buffer, it will go ahead and create file on the disk behind the scene. If you'll dispose the instance, the file will be removed.


0 comments