Home > Information > Forum > Show Topic
Show thread topic
24.06.2019
Reset Windows Password v9.3
Support for Windows 10 1903, Trusted Boot Auto-Logon, Microsoft Edge Dev ...
11.06.2019
New article
DPAPI security flaw in Windows 10
10.06.2019
Windows Password Recovery 11.7
Support for Windows 10 1903, Trusted Boot Auto-Logon, etc.
24.05.2019
Wireless Password Recovery v6.0.1
New GPU engine and automated multi-mode for recovery

Articles and video

You may find it helpful to read our articles on Windows security and password recovery examples. Video section contains a number of movies about our programs in action

Decrypt certificate from Regsitry/Filesystem?

Opa114, 19:45:55 12.12.2014 Rating: 0 #1

Decrypt certificate from Regsitry/Filesystem?  

Hi,

how is possible to decrypt digital certificates which are stored in registry and/or filesystem? i tried it with cryptUnprotectData() from crypt32.dll (in java using JNA). but i get inavlid data exception. so i think data in registry is not encrypted with dpapi or i have to use some arguments in the cryptUnprotectData() function. but i don't know what the values should be exactly?!

can someone help?
 
IvanO, 11:18:23 13.12.2014 Rating: 0 #2

RE: Decrypt certificate from Regsitry/Filesystem?  

Hi,

To access a certificate, you should use the following Windows APIs instead:
CertOpenStore
CertFindCertificateInStore


To decrypt data
CryptAcquireCertificatePrivateKey
CryptDecodeObjectEx


 
 
Opa114, 15:09:38 13.12.2014 Rating: 0 #3

RE: RE: Decrypt certificate from Regsitry/Filesystem?  

thanks i will take a look there. but another question. CertOpenStore did only open the default store right? But how can i access other stores, maybe if i created one. thanks again.
 
IvanO, 18:56:17 13.12.2014 Rating: 0 #4

RE: Decrypt certificate from Regsitry/Filesystem?  

Well, actually it should use one you provide as it is stated here:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa376559(v=vs.85).aspx
 
Opa114, 17:06:45 15.12.2014 Rating: 0 #5

No Subject  

thanks again. i looked on CertOpenStore(). i tried it to run it in java. but i stuck on it. I could load the dll, but i don't know the matching data-typed from C++ to Java? Can you give me an example for CertOpenStore() in java?
quote:
public interface ExampleDLL extends Library {
          ExampleDLL INSTANCE = (ExampleDLL) Native.loadLibrary("crypt32.dll", ExampleDLL.class);

this is the way i load the dll. but the how have i to declare the native function certOpenStore() and how tp run it? Would be so great and helpful from you. i you could help me here. thank you so much!
 
IvanO, 17:15:16 15.12.2014 Rating: 0 #6

RE: Decrypt certificate from Regsitry/Filesystem?  

Unfortunately, all our software is writted in C++, we have no experience in Java. I'm afraid I can't help you with it. You should probably try a luck posting the request to a java forum.
 
Opa114, 17:36:24 15.12.2014 Rating: 0 #7

No Subject  

okay i will try.
 
Entries 1 to 7 from 7  [ <<  1  >> ]