Error reading exported certificate private key on some machines.

M

Marcio Hübner

//code for testing using System; using System.Security.Cryptography.X509Certificates; using System.Security.Cryptography; using System.Text; public class Program { public static void Main() { string password = "F@dr4PaeE#2a"; byte[] certData; StringBuilder dn = new StringBuilder(); dn.Append("CN=64d9f3dd-23ba-0101-a802-a4893a4b9695,O=TESTE,OU=Gene,L=Realeza,S=PR,C=BR"); X500DistinguishedName d = new X500DistinguishedName(dn.ToString()); using (RSA a = RSA.Create(2048)) { CertificateRequest r3 = new CertificateRequest(d, a, HashAlgorithmName.SHA512, RSAS

Continue reading...
 
Back
Top Bottom