Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Asp.net RSA Machine level encryption.

Reply
Thread Tools

Asp.net RSA Machine level encryption.

 
 
Derek
Guest
Posts: n/a
 
      09-05-2006
I'm trying to setup encryption using machine level RSA for a web farm and
having issues. I followed the instructions on MSDN article but when I import
run app on another machine the error I get the following error

Failed to decrypt using provider 'RsaProtectedConfigurationProvider'. Error
message from the provider: Bad Data.

Most of my searching seemed to point to ACLS on key but I dont think this is
the case as I can take a unecrypted web.config and encrypt and run on each of
the machines with no issues but if I take a encrypted config from machine A
and run on machine B I get the error above.

Also I going from a Windows 2003 to Windows 2000 Server box. I granted
permissions to NT Authority\Network Service on 2k3 box and ASPNET on 2K box.

Here's unecrypted config snippet

<configProtectedData>
<providers>
<add keyContainerName="MyKeys" useMachineContainer="true"
description="Uses RsaCryptoServiceProvider to encrypt and decrypt"
name="CustomProvider"
type="System.Configuration.RsaProtectedConfigurati onProvider,System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</providers>
</configProtectedData>
<connectionStrings>
<add name="Test"
connectionString="Database=testdbname;Server=TestS erverName;User=myuserid;Passwor=mypassword;"
providerName="System.Data.SqlClient" />
</connectionStrings>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
c is a low-level language or neither low level nor high level language pabbu C Programming 8 11-07-2005 03:05 PM
Is Cisco PIX Application level firewall or Packet level firewall? Learning Cisco Cisco 3 10-15-2005 12:55 AM
Accessing higher security level from higher security level nderose@gmail.com Cisco 0 07-11-2005 10:20 PM
Implementing .net RSA on the server *and* JavaScript RSA on the client gg ASP .Net 0 11-18-2004 10:29 PM



Advertisments