Windows 10: Error reading exported certificate private key on some machines.

Discus and support Error reading exported certificate private key on some machines. in Windows 10 Gaming to solve the problem; //code for testingusing System;using System.Security.Cryptography.X509Certificates;using System.Security.Cryptography;using System.Text;public class... Discussion in 'Windows 10 Gaming' started by Marcio Hübner, Nov 16, 2024.

  1. Error reading exported certificate private key on some machines.


    //code for testingusing 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 X500DistinguishedNamedn.ToString; using RSA a = RSA.Create2048 { CertificateRequest r3 = new CertificateRequestd, a, HashAlgorithmName.SHA512, RSAS

    :)
     
    Marcio Hübner, Nov 16, 2024
    #1

  2. how do I export certificates and/or private keys?

    Hi,

    Thank you for posting your query on Microsoft Community. Let me assist you.

    I suggest you to follow the below steps to export a certificate with a private key

    1. Open the Certificates console for the user, computer, or service you want to manage.

    2. In the console pane, select the certificate store and container holding the certificate that you want to export.

    3. In the details pane, click the certificate you want to export.

    4. On the Action menu, point to
    All Tasks, and then click Export.

    5. In the Certificate Export Wizard, click
    Yes, export the private key. (This option will appear only if the private key is marked as exportable and you have access to the private key.)

    6. Under Export File Format, do one or all of the following, and then click
    Next.

    • To include all certificates in the certification path, select the
      Include all certificates in the certification path if possible check box.
    • To enable strong protection, select the Enable strong protection (requires IE 5.0, NT 4.0 SP4 or above) check box.
    • To delete the private key if the export is successful, select the
      Delete the private key if the export is successful
      check box.
    7.In Password, type a password to encrypt the private key you are exporting. In
    Confirm password, type the same password again, and then click
    Next
    .

    8. In File name, type a file name and path for the PKCS #12 file that will store the exported certificate and private key, click
    Next, and then click Finish.

    Hope this information is helpful. Please do let us know if you need further assistance, we’ll be glad to assist you.
     
    Pawan Dhondiyal, Nov 16, 2024
    #2
  3. Cannot Export / Backup my EFS certificate private key

    Windows 10 Pro
    1909

    Hi Folks,

    I am trying to export my EFS certificate as a backup, however I am having no joy.

    Note: I can encrypt and decrypt files using EFS no problem using my account.

    Trying in Certificate Manger:

    certmgr.exe (As Administrator)
    Personal / Certificates
    Right click the EFS cert / Export

    The option to export the private key is greyed out, with a note:

    The associated private key is marked as not exportable. Only the certificate can be exported

    Using cipher.exe:

    cipher /x c:\temp\EFSCertBack

    Error: Key not valid for use in specified state.

    Before I decrypt all of my EFS files and start a fresh any ideas?

    Cheers
     
    SuperPlay-UK, Nov 16, 2024
    #3
  4. g_954 Win User

    Error reading exported certificate private key on some machines.

    How to export Private Key

    Hello,

    I have configured a Windows Server 2012R2 Certificate Services computer and created a template to issue certificates and checked the box to allow the private key to be exported.

    When I use the certificate manager on my Windows 10 tablet the option to select and export format that allows exporting the private key is not selectable. it is grayed out.

    What am I doing wrong?

    Thanks
     
    g_954, Nov 16, 2024
    #4
Thema:

Error reading exported certificate private key on some machines.

Loading...
  1. Error reading exported certificate private key on some machines. - Similar Threads - Error reading exported

  2. Error reading exported certificate private key on some machines.

    in Windows 10 Software and Apps
    Error reading exported certificate private key on some machines.: //code for testingusing 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;...
  3. CryptAcquireCertificatePrivateKey fails to retrieve the private key for certificate listed...

    in Windows 10 Gaming
    CryptAcquireCertificatePrivateKey fails to retrieve the private key for certificate listed...: //Open Local Machine store NCRYPT_KEY_HANDLE hKey = 0; PCCERT_CONTEXT pCertContext = NULL; HCERTSTORE hCertStore = NULL; DWORD dwKeySpec; BOOL bCallerFreeProv; hCertStore = CertOpenStoreCERT_STORE_PROV_SYSTEM, 0, NULL, CERT_SYSTEM_STORE_LOCAL_MACHINE, L"My";...
  4. Encrypting file system the certificate or key is not available for export on this machine....

    in Windows 10 Network and Sharing
    Encrypting file system the certificate or key is not available for export on this machine....: Hello! I used to have a laptop and I sold it about two years ago. Before I sold it I moved my files to an external drive. The files were encrypted now I'm trying to access them on another pc but they're locked. Note: I was using my Microsoft Account when I did the encryption...
  5. Encrypting file system the certificate or key is not available for export on this machine....

    in Windows 10 Gaming
    Encrypting file system the certificate or key is not available for export on this machine....: Hello! I used to have a laptop and I sold it about two years ago. Before I sold it I moved my files to an external drive. The files were encrypted now I'm trying to access them on another pc but they're locked. Note: I was using my Microsoft Account when I did the encryption...
  6. Encrypting file system the certificate or key is not available for export on this machine....

    in Windows 10 Software and Apps
    Encrypting file system the certificate or key is not available for export on this machine....: Hello! I used to have a laptop and I sold it about two years ago. Before I sold it I moved my files to an external drive. The files were encrypted now I'm trying to access them on another pc but they're locked. Note: I was using my Microsoft Account when I did the encryption...
  7. Lost Private key to EFS certificate file -

    in AntiVirus, Firewalls and System Security
    Lost Private key to EFS certificate file -: Hi,I cannot access my encrypted files because the encryption certificate changed. I can still see it in the certificate manager but I cannot export it in Pfx file to install it again only in CER format....
  8. Manual Certificate Request, User can change settings and export Private Key

    in AntiVirus, Firewalls and System Security
    Manual Certificate Request, User can change settings and export Private Key: Hi, today I have recognized that when our users manually request a certificate they can also change the request settings and select the private key to be exportable. How can I prevent this ? [ATTACH] [ATTACH] The situation is the same with users that have local...
  9. Cannot Export / Backup my EFS certificate private key

    in AntiVirus, Firewalls and System Security
    Cannot Export / Backup my EFS certificate private key: Windows 10 Pro 1909 Hi Folks, I am trying to export my EFS certificate as a backup, however I am having no joy. Note: I can encrypt and decrypt files using EFS no problem using my account. Trying in Certificate Manger: certmgr.exe As Administrator Personal /...
  10. the certificate or key is not available for export on this machine. error code 80092004

    in Windows 10 Network and Sharing
    the certificate or key is not available for export on this machine. error code 80092004: Hello, I am facing this issue after I changed my system. On my old system, I had one folder which was encrypted using Windows 10 BitLocker. Although before moving to new system I decrypted my files. Now when I attached my drive to this new system there is an Lock icon on my...