News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Security Library Forum
 
Could not aquire crypto context  
by Sean [sean at dominator dot org]
posted on 2004/04/20

Hi, we are getting an exception "Could not aquire crypto context" when trying to reteive the Public key from the Certificate object . The problem occours when the IIS user is set to anything other than the logged on user.
We are using win2000, SecLib ver1.0* (not the latest). We are trying to validate a web service request that has a digital signature.

by Sean
posted on 2004/04/20

May have found the problem. Have modified the code to use the CRYPT_MACHINE_KEYSET flag and it now seems to work. Would appreciate any comments on the change (good/bad/watch out for)
Cheers

by Pieter Philippaerts [Pieter at mentalis dot org]
posted on 2004/05/13

Yes, feel free to make the modification. We've just noticed the same problem on Windows Server 2000. The error is related to the fact that ASP.NET under Windows 2000 runs on an account that has no associated user profile. We'll make sure there's a way to work around this problem in the release of the next SecLib update.

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.