Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to debug a Cryptographic Service Provider?

22 Oct 2012   #1

Windows 7 Professional x86
 
 
How to debug a Cryptographic Service Provider?

Hi guys,

I am developing a CSP that needs to work with Microsoft CryptoAPI (CAPI). I have implemented some of the specified functions and would like to debug the CSP. I have put together a small test application that calls CryptAcquireContext and CryptReleaseContext to see whether the CSP loads and unloads successfully.

The problem is that when I run the test application, CryptAcquireContext returns error 8009001a.

I know that it is not ideal to use CAPI since CNG has replaced CAPI, but I have too.

Anyway, I read that for previous versions of Windows, a developer could test sign the CSP and alter "advapi32.dll" in order for Windows to load the CSP for development purposes.

The aforementioned approach has now been abandoned, as I have read that the CSP needs to be signed by Microsoft in order for it to load correctly. I came across a workaround which suggested that the cryptsp.dll module checks whether the CSP has been signed and prevents rogue CSPs from loading.

I also read that using a kernel debugger could solve the problem.

How would you suggest I proceed with debugging the CSP? Is there another way I could "test sign" the CSP?

My System SpecsSystem Spec
.

Reply

 How to debug a Cryptographic Service Provider?




Thread Tools



Similar help and support threads for2: How to debug a Cryptographic Service Provider?
Thread Forum
Solved How to digitally sign a Cryptographic Service Provider (CSP) Software
Getting error ' cryptographic service not running ' Browsers & Mail
Cryptographic Services failed BSOD Help and Support
Internet Service Provider Chillout Room
New Scareware Leverages the Layered Service Provider. Security News
New Scareware Leverages the Layered Service Provider. Security News
Cryptographic Services System Security

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 12:43 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33