[prev in list] [next in list] [prev in thread] [next in thread]
List: ms-cryptoapi
Subject: Thank you: Re: IIS,
From: Amir M <amir.m () SAPIENS ! COM>
Date: 1998-10-13 9:34:45
[Download RAW message or body]
Hi,
I would like to thank all of you for helping me out.
Apparently on some machines CryptAcquireContext() will work under Guest
acount.
On others it won't (why ? I don't know).
I added the call to RevertToSelf() as Jeff advised me and, for the moment,
seems that things got cool.
Amir M wrote:
> Hi everybody,
>
> I have a DLL that uses PROV_RSA_FULL CSP to enc/dec some info.
>
> The code works ok besides a particular situation:
> When I run it from an IIS ISAPI.
>
> By default IIS has user rights of Guest. In that case
> CryptAcquireContext() fails.
>
> If I assign IIS the rights of Administrator there's no problem.
>
> Could the reason be that the I created the keys as Adminstartor and when
> IIS trayes to access them as as Guest
> he doesn't have the rights ?
>
> My code:
> CryptAcquireContext(&hProv, NULL, NULL, PROV_RSA_FULL, CRYPT_NEWKEYSET
> | CRYPT_MACHINE_KEYSET) )
>
> Thank you,
> Amir
>
> ----------------------------------------------------------------
> Users Guide http://www.microsoft.com/workshop/essentials/mail.asp
> contains important info including how to unsubscribe. Save time, search
> the archives at http://discuss.microsoft.com/archives/index.html
----------------------------------------------------------------
Users Guide http://www.microsoft.com/workshop/essentials/mail.asp
contains important info including how to unsubscribe. Save time, search
the archives at http://discuss.microsoft.com/archives/index.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic