crypto security setting problem
From: Lorenzini Fabien (difabio_at_voila.fr)
Date: 10/18/04
- Next message: Nicole Calinoiu: "Re: Href/Exe and Async SWE 2.0SP1 CAS Security error"
- Previous message: Phil Knight: "Authorization/Profile App Block, AzMan and fixed identity account"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 18 Oct 2004 03:35:46 -0700
Hello
I am using RSA provider like this :
rsa = new RSACryptoServiceProvider(GetCryptoServiceProvider());
private CspParameters GetCryptoServiceProvider()
{
// Create the CspParameters object
CspParameters csp = new CspParameters();
// Set the key container name that has the _rsa key pair
csp.KeyContainerName =
System.Configuration.ConfigurationSettings.AppSettings["SigningKeyContainerName"];
//Set the CSP Provider Type PROV_RSA_FULL
csp.ProviderType = 1;
csp.Flags = CspProviderFlags.UseMachineKeyStore;
//Set the CSP Provider Name
csp.ProviderName = "Microsoft Enhanced Cryptographic Provider
v1.0";
return csp;
}
I am also using IIS 6, Windows Server 2003 and an integrated
authentication.
When my ASP.NET app runs under Network Service, I give needed rights
to the folder
C:\Documents and Settings\All Users\Application
Data\Microsoft\Crypto\RSA\MachineKeys
All is ok.
Now I need to run my app under a user account (user created in the
domain). I give also read/write access to the folder C:\Documents and
Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys
But I have the following error message :
CryptoAPI cryptographic service provider (CSP) for this implementation
could not be acquired
Moreover, if I add the User Account in the administrator group of the
server, it works.
My question is, which permission are necessary for my user account ?
Thanks !!
- Next message: Nicole Calinoiu: "Re: Href/Exe and Async SWE 2.0SP1 CAS Security error"
- Previous message: Phil Knight: "Authorization/Profile App Block, AzMan and fixed identity account"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|