How can I create a PKCS12 p12 file with selfsigned certificate for DSA keypair in C#?
问题 I need to generate my own DSA keypair and store it as a bundle of private key and certificate in .p12 file using C#. This question How do I create a PKCS12 .p12 file in C#? seems to be very similar, but it does not help me, unfortunately, because there are some significant differences (RSA vs DSA, etc.) I am trying to generate the keypair using System.Security.Cryptography.DSACryptoServiceProvider and then to generate a X509 certificate using Bouncy Castle: using (DSACryptoServiceProvider csp