How to setup my CSP as windows default CSP?

From: Faisal Masood (faisalmasood@hotmail.com)
Date: 03/28/03


From: faisalmasood@hotmail.com (Faisal Masood)
Date: 27 Mar 2003 19:34:57 -0800

Hi,

It's a bit lengthy description of my problem, but I really appreciate
if someone can guide me.

I have developed a CSP and have tested it under Windows 2000, SP2 with
my own
test applications which seems to be working fine. I have done the
following
to install and test my CSP:

1. Replaced advapi32.dll with the one in the CSP DK.
2. Added an entry in the register
"HKEY_LOCAL_MACHINE\software\microsoft\cryptography\default\provider"
for my CSP
3. Added an entry in the register
"HKEY_LOCAL_MACHINE\software\microsoft\cryptography\default\provider
Type" for my CSP

The provider type for my CSP is 800.

My test application works fine when I do CryptAcquiteContext with the
provider type 800.

In order to make my CSP as windows default CSP, I changed the
registery to replace one of the windows default CSP (PROV_RSA_FULL =
001) with my CSP, and set the provider type of my CSP as 001. i.e.

1. HKEY_LOCAL_MACHINE\software\microsoft\cryptography\default\provider
- entry of my CSP with type 001
2. HKEY_LOCAL_MACHINE\software\microsoft\cryptography\default\provider
Type\Type 001 - my CSP

Now, when I reboot windows, it gives me an error message:

"Files that are required for windows to run properly have been
replaced by unrecognized
 versions. To maintain system stability, windows must restore the
original versions of these
 files. Insert your service pack 2 CD now."

I know that windows is using my CSP as I log all the operations in a
file. It seems that
one of the CPVerifySignature is failing, causing the above message. [I
think windows checks
the integrity of some files by maintaining a sign which it verifies at
startup].

Does this message is coming because I have replaced windows default
CSP with mine, and
now windows is trying to verify the signature of the new CSP DLL?

Or, is there something wrong with my setup?

I really appreciate if someone can look at the configuration and help
me to locate where the problem is as I have spent good time trying to
figure out the problem without any luck.

Thanks in advance.

Faisal



Relevant Pages

  • Re: Coredll patch Windows CE 4.21
    ... you first create a Windows CE project based on the ARM emulator. ... Debugging a CSP is similar to debugging ... windows ce images/apps using platform builder and arm emulator. ... > the platform builder and activating the flag "Enable Kernel Debugger" ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Coredll patch Windows CE 4.21
    ... The way you say to do the tests of our CSP in a Pocket PC device is using ... the platform builder and activating the flag "Enable Kernel Debugger" isn't ... Do I must to do a new Windows CE ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Should we sign DLLs used by a CSP.
    ... dlls that you use. ... wouldn't be able to just write a strong crypto CSP and add it to Windows. ... API provided via one of the CPAcquireContextparameters. ...
    (microsoft.public.platformsdk.security)
  • How to setup my CSP as windows default CSP?
    ... I have developed a CSP and have tested it under Windows 2000, ... Added an entry in the register ... The provider type for my CSP is 800. ... In order to make my CSP as windows default CSP, ...
    (microsoft.public.security)
  • Re: RSA/DSA crypto service provider - what component needed
    ... PRB: Err Msg: CSP for This Implementation Could Not Be Acquired ... MS Exchange Hosting: http://www.intermedia.net/exchangehosting Windows 2000 Web Hosting: http://www.intermedia.net/webhosting For a waiver of the set up fee use "IMFREE" code ... > Im trying to use .Net RSA/DSACryptoServiceProvider classes and during> object creation I got exception from: mscorlib "CryptoAPI cryptographic service provider for this implementation could not be acquired". ... > Are that components dependent of national versions of Windows or region? ...
    (microsoft.public.dotnet.framework.aspnet.security)