Skip to content

Commit

Permalink
Add documentation on CryptAcquireContext intercept
Browse files Browse the repository at this point in the history
  • Loading branch information
oddbjornkvalsund committed Aug 15, 2018
1 parent 2dcd518 commit 5bb3689
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ So if you need access to certificates and/or private keys stored in the Windows

## Solution
This software uses the Microsoft Detours³ library to intercept `CertOpenSystemStore` function calls and instead returns a handle to a collection type certificate store that aggregates both the `Current User` and `Local Computer` certificate stores.
In addition, it intercepts calls to `CryptAcquireContext` and adds `CRYPT_MACHINE_KEYSET` to `dwFlags` if the original call fails with an `NTE_BAD_KEYSET` ("Keyset does not exist") error. This is required to use keys that are stored in the `Local Computer` certificate store.

## Get
Clone this repo and build with `nmake` (requires a working Win32 build environment) or download prebuilt binaries from the "Releases" section of this repo.
Expand Down

0 comments on commit 5bb3689

Please sign in to comment.