Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,355 questions
Hi, thank you.
Simply if I am logged as user which have both certificate (valid and expired with private keys) in his certificate store, I can only restore certificates archived with new KRA certificate using certutil. If I try restore older certificates, I get error:
CertUtil: -RecoverKey command FAILED: 0x8009200c (-2146885620 CRYPT_E_NO_DECRYPT_CERT)
CertUtil: Cannot find the certificate and private key to use for decryption.
Certutil by defualt use only valid KRA certificate. Is there any parametr to specify older certificate for restore operation?
¨
Radovan
Hello @Radek J ,
Thank you for posting here.
Based on the description "Simply if I am logged as user which have both certificate (valid and expired with private keys) in his certificate store, I can only restore certificates archived with new KRA certificate using certutil. If I try restore older certificates, I get error", would you please tell us:
You have one expired KRA certificate and one new KRA certificate, you want to restore the same user key with both expired KRA certificate and new KRA certificate using certutil, is that right?
If so, what command do you use using new KRA certificate?
And what command do you use using expired KRA certificate?
Best Regards,
Daisy Zhou
This may indicate that cert was encrypted with different KRA cert which is not installed. Rename blob file to
.p7b
extension, open and look at KRA cert you must have.Hello @Radek J ,
How are you?
Hope the information Crypt32 provided is helpful.
If you have any question, please feel free to let us know.
Best Regards,
Daisy Zhou
Hello,
thank you, sorry for delay.
My command was simply: certutil -recoverkey C:\pom\user1.key c:\pom\user1.pfx
Yes I have one expired KRA certificate and one new KRA certificate in my certificate store, I want to restore the user1 certificate with expired KRA certificate.
Where can I find that blob file?
RadekJ
You can recover key only with KRA certificate was used to archive the key. Make sure that you are using correct KRA certificate to recover.
Sign in to comment