Generate X509Certificate2 in C#


Sometimes you just need a X509Certificate2 in your C# code. For authenticating to an external webservice for instance.
This will show you how to create such a certificate right from your C# code. By the way you’ll need the Bouncy castle or Bouncy castle core library
This page is created with the help of this page

Software architect | Full-stack developer
Trainer | Speaker | Blogger