Exporting Windows Non-Exportable RSA Private Keys
This project has been directly inspired by the follwing paper and slideshow:
by Jason Geffner <jason.geffner@ngssecure.com> of NCC Group (UK)
https://www.nccgroup.trust/uk/our-services/security-consulting/
Executables
Pre-built exportrsa.exe executables are located in:
DEBUG: exportrsa/Debug/ (requires Visual Studio 2010 installed)
RELEASE: exportrsa/Release/ (requires only Visual Studio 2010 runtime installed)
Code
Visual Studio 2010 build project:
The single code file is here:
exportrsa/exportrsa/exportrsa.cpp
How to use
The code parses all system key stores and exports in .pxf files for all certificates that have a RSA private key available.
Just run exportrsa.exe in a command shell:
If you receive an error due to missing the msvcr100.dll (release version), you will need to install the vcredist_x86_2010.exe runtime. To use the debug version, you will need Visual Studio 2010 installed.
