Re: CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired
From: Allen Owen (alleno@intenda.co.za)
Date: 07/24/02
- Next message: David Thom: "Re: Understanding application security in .NET"
- Previous message: Allen Owen: "Re: How do I get RSA public key from X509Certificate ?"
- In reply to: Chen Wei: "CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired"
- Next in thread: Willy Denoyette [MVP]: "Re: CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired"
- Reply: Willy Denoyette [MVP]: "Re: CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Allen Owen" <alleno@intenda.co.za> Date: Wed, 24 Jul 2002 10:52:02 +0200
Hi,
I've just encountered this error using the RSACryptoServiceProvider and
would imagine that you're having the same problem using des.
The reason that you're getting the problem is because the ASPNET user (in
.NET), or your IUSR_machinename user in conventional asp is not an
interactive user and as such doesn't have its own UserKeyStore which your
des class references when it is instantiated.
What you can do to correct this is pass a directive to the class to use the
MachineKeyStore :
CspParameters cspParam = new CspParameters();
cspParam.Flags = CspProviderFlags.UseMachineKeyStore;
RSACryptoServiceProvider RSA = new RSACryptoServiceProvider(cspParam);
This is one possible solution. Another is to turn impersonation on and thus
user the impersonated user's keystore.
Hope this helps.
Cheers
Allen
"Chen Wei" <chenwei@testel.com.sg> wrote in message
news:OtnRVkDFCHA.2064@tkmsftngp07...
> Dear all,
>
> I code one COM dll which will call an assembly, and this COM dll will be
> used by ASP pages. Both COM component & assembly work very well in stand
> alone window application, but I have the following problem when I try to
> can the COM component in ASP page, what goes wrong? I'm using
> DESCryptoServiceProvider, my OS is NT4.0 sp6.
>
> mscorlib error '80131430'
>
> CryptoAPI cryptographic service provider (CSP) for this implementation
could
> not be acquired.
>
> Thanks in advance and reply to chenwei@testel.com.sg
>
>
>
- Next message: David Thom: "Re: Understanding application security in .NET"
- Previous message: Allen Owen: "Re: How do I get RSA public key from X509Certificate ?"
- In reply to: Chen Wei: "CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired"
- Next in thread: Willy Denoyette [MVP]: "Re: CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired"
- Reply: Willy Denoyette [MVP]: "Re: CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|