need help using CryptoAPI from COM object in IIS5

need help using CryptoAPI from COM object in IIS5

Secure Home | Search | About
 General Computer Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
need help using CryptoAPI from COM object in IIS5 radar 04-17-2006
Posted by radar on April 17, 2006, 9:35 am
If you were  Registered and logged in, you could reply and use other advanced thread options
I am a newbie for Crypto.... I am attempting to develop a COM/ATL
component that uses the CryptoAPI that I can then use it from
ASP/VBScript. The component works fine when is called from a C++
executable or VB program. Unfortunately when using the component under
VBScript on Win2000/IIS5.0, the component fails on the call to
CryptAcquireContext. The value returned by GetLastError() is 2 (File
not found?). I made sure the iuser_machinename account has fuul access
to the crypto directory under All Users / Apllications Data /
Microsoft. I have tried broadening the privileges of the
iuser_machinename account, but have met with no success.


Does anyone have any pointers on how I can make this work?


Thanks,
Ronnie
radar at pennypublications dot net


Posted by radar on April 18, 2006, 8:38 am
If you were  Registered and logged in, you could reply and use other advanced thread options
OK...

Solution to the above issue was relatively simple.... it just needed a
lot of reading and finding the right document.

Set the CRYPT_MACHINE_KEYSET flag. You can read more about it under
"Using the CRYPT_MACHINE_KEYSET flag" in this Microsoft KB
document:
http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B238187

Thanks,
Ronnie
radar at pennypublications dot net


radar wrote:
> I am a newbie for Crypto.... I am attempting to develop a COM/ATL
> component that uses the CryptoAPI that I can then use it from
> ASP/VBScript. The component works fine when is called from a C++
> executable or VB program. Unfortunately when using the component under
> VBScript on Win2000/IIS5.0, the component fails on the call to
> CryptAcquireContext. The value returned by GetLastError() is 2 (File
> not found?). I made sure the iuser_machinename account has fuul access
> to the crypto directory under All Users / Apllications Data /
> Microsoft. I have tried broadening the privileges of the
> iuser_machinename account, but have met with no success.
>
>
> Does anyone have any pointers on how I can make this work?
>
>
> Thanks,
> Ronnie
> radar at pennypublications dot net


Similar ThreadsPosted
MS CryptoAPI and FIPS 140-x May 6, 2004, 11:22 pm
Re: Microsoft Internet Explorer COM Object Instantiation Memory Corruption Vulnerability December 15, 2005, 10:03 am
Encryption Wizard Offers Large Object Binary support for Oracle Customers. May 20, 2005, 12:52 pm

The site map in XML format XML site map

Contact Us | Privacy Policy