CreatePkcs10 function for certEnroll



hi frnz

I got a issue in creating csr with certEnroll.dll in Windows
VISTA IE7
Previously i used xp machine with xenroll.dll for capicom
functions ,its working perfectly.

Now Im using Vista machine , so here we can create object only
for certEnroll.dll. In my application ,im generating the csr with
given details , But it is couldnt possible in vista ,

I have tried out some combination like .,
obj_certEnroll.createRequest(CRYPT_STRING_BASE64)

But it creating some hash value, which is not a valid csr format.

In some site they have said that. certEnroll object can be create with
(CEnroll.CEnroll) words. but it is not working in Vista , But it works
in XP IE6.

I can create the CertEnroll object only by
Set obj_CertEnroll =
g_objClassFactory.CreateObject("X509Enrollment.CX509Enrollment")

Can anyone tellme , what is the exact function to create CSR . i.e,
alternative of createPKCS10 for CertEnroll

Thnkx
Dinesh B...

.