all groups > dotnet security > july 2007 >
You're in the

dotnet security

group:

Dcrypt Web.config file



Dcrypt Web.config file Paramveer
7/6/2007 8:02:05 AM
dotnet security: Hi ,

I am able to encrypt <identity> element in web.config.

I use <identity> element userName (domain\Service account) and password to
make connection to the database. As values in the web.config file are
encrypted
I am not able to run my project.

Error
Failed to decrypt using provider 'RsaProtectedConfigurationProvider'. Error
message from the provider: The RSA key container could not be opened.


Let me know what modification I have to do, to dcrypt the value of
web.config so that identity username makes a connection with database.

Re: Dcrypt Web.config file Dominick Baier
7/9/2007 7:15:56 AM
you have to give the worker process account read access to the key container
(by default thats NETWORK SERVICE)

use the aspnet_regiis tool for that ...
-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

[quoted text, click to view]

AddThis Social Bookmark Button