Questions tagged by "x509certificate2"


0
 bounty
1
answers
Create RSACryptoServiceProvider object with keys defined as strings without going through X509Certificate2 object
10 years ago • lampego1@qrid
Quite often people use X509Certificate2 object to instantiate a RSACryptoServiceProvider object: var rsaObj = new X509Certificate2("some-cert.p12", "password", X509KeyStorageFlags.Exportable | X509KeyStorageFlags.MachineKeySet).PrivateKey as RSACryptoServiceProvider; I want to generate the RSACryptoServiceProvider object using private and public keys defined as strings, without going through X509Certificate. Please help!
1 from 1