Re: Error while enrolling a digital certificate with our custom CS

From: David Cross [MS] (dcross_at_online.microsoft.com)
Date: 12/30/04


Date: Thu, 30 Dec 2004 05:24:43 -0800

This tool may help you test your CSP:

CSP test suite:
http://download.microsoft.com/download/a/9/8/a9831d81-013e-4ba8-a186-18c9133a2cc2/CSPTSTS10.EXE

-- 
David B. Cross [MS]
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Top Whitepapers:
Auto-enrollment whitepaper: 
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/security/autoenro.mspx
Best Practices for implementing Windows Server 2003 PKI: 
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/security/ws3pkibp.mspx
Troubleshooting Certificate Status and Revocation whitepaper: 
http://www.microsoft.com/technet/security/topics/crypto/tshtcrl.mspx
Windows Server 2003 web enrollment and troubleshooting guide: 
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/security/webenroll.mspx
Windows Server 2003 web enrollment and troubleshooting guide: 
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/security/webenroll.mspx
"shiva" <shiva@discussions.microsoft.com> wrote in message 
news:06548EBB-24EB-4A03-8190-563438EDCFC1@microsoft.com...
> Hi Doug Barlow
>
>  Thanks for ur immediate response.
> But still iam finding the same problem,while enrolling the certificate 
> after
> i changed all the entry points declared using "WINAPI"
> Actually when i tried testing a csp by writing a exe its showing error as
> Acquirecontext failed error:0x57
>
> will u please tell me how to proceed further
>
> Thanks in Advance
>
> shiva
>
>
>
> "Doug Barlow" wrote:
>
>> All CSP entry points should be declared using the "WINAPI" calling
>> convention.  For example,
>>
>> EXTERN_C BOOL WINAPI
>> CPAcquireContext(...)
>>
>> Doug Barlow
>> The Soft Pedal Shop
>> CSP Design & Development Consulting
>> http://www.SoftPedal.net
>>
>> -- 
>> "shiva" <shiva@discussions.microsoft.com> wrote in message
>> news:48F1E417-70C4-4F7B-860E-204CA7DEC1A2@microsoft.com...
>> >I am involved in Custom CSP creation... and I need to be clarified
>> > i had succesfully created the my csp.dll and registered that 
>> > successfully
>> > in
>> > the registry.
>> > when iam trying to enroll a digital certificate using that custom csp 
>> > iam
>> > getting the follwing error
>> >
>> > DEBUG ERROR!
>> >
>> > Program:c:\Program Files\InternetExplorer\iexplore.exe
>> > Module:
>> > File:i386\chkesp.c
>> > Line:42
>> >
>> > The Value of ESP was not properly saved across a function call .This is
>> > usually a result of calling a function declared with one calling
>> > convention
>> > with a function pointer declared with a different calling convention
>> >
>> > when i ignore this error it showing
>> >
>> > Error:5
>> >
>> > Please help in this to resolve
>> >
>> >
>> >
>> >
>>
>>
>> 


Relevant Pages

  • Re: Error while enrolling a digital certificate with our custom CSP
    ... All CSP entry points should be declared using the "WINAPI" calling ... convention. ... EXTERN_C BOOL WINAPI ... CSP Design & Development Consulting ...
    (microsoft.public.platformsdk.security)
  • Re: Error while enrolling a digital certificate with our custom CS
    ... Do you have libraries or external DLLs you call in your CSP? ... using the correct calling conventions for each of them. ... > Hi Doug Barlow ...
    (microsoft.public.platformsdk.security)
  • Re: single dot prefix for hyperlinks
    ... "Test.asp" is found in the same folder as the target page calling the ... hyperlink "Last Image"? ... One is "csp" ... Otherwise the resolution of the URLs ought to point to the same ...
    (alt.html)
  • Re: CSPDK sample CSP fails
    ... are you familiar with the CSP test suite? ... It may help you debug your CSP: ... I have prepared the test environment by expading> the advapi32.dl_ located in win2k folder and copied it both in> dllcache and system32 folders. ... So I suppose that the> patched dll has been installed correctly. ...
    (microsoft.public.platformsdk.security)
  • Re: testing a CSP on Windows Server 2003
    ... This link might help you in testing your CSP: ... CSP test suite: ... I created a Certificate Authority on my Windows Server> 2003 machine. ...
    (microsoft.public.platformsdk.security)