Jump to content

Error reading exported certificate private key on some machines.


Recommended Posts

Guest Marcio Hübner
Posted

//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...

  • Replies 0
  • Created
  • Last Reply

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...