There is very little documentation and examples around on how to do this. And when you get stuck on something, you might not know what to search for. So here is a complete example for C#. I’m using a NuGet …

Generate a new X509Certificate2 with extensions and private key, in C# Read more »