Re: rsa encrtyption



have you tried to do aspnet_regiis -pa to grant access to the key?


-----
Dominick Baier (http://www.leastprivilege.com)

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

I created a key for encrypting my web.config

aspnet_regiis -pz WebEncryptionKeys aspnet_regiis -pc
WebEncryptionKeys -exp

exported them
aspnet_regiis -px WebEncryptionKeys c:\WebEncryptionKeys_Public.xml
-pri
imported them to developers and server machines
aspnet_regiis -pi "WebEncryptionKeys" "c:\WebEncryptionKeys_Public.xml
"
Then in MsBuild I run
<Target Name="AfterBuild">
<Exec WorkingDirectory="$(OutputPath)"
Command="$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\Tool
sVersions\2.0@MSBuildToolsPath)aspnet_regiis.exe
-pef connectionStrings $(OutputPath) -prov HrCustomProvider" />

This works fine from my machine, the web.config gets encrypted and
moved to
the server.
However, if a co-worker runs the same msBuild on her machine, we get a
bad
data error when the website is hit on the server. If I deploy to the
server,
she can logon to the server and encrypt and decrpyt the web.config.
I re-imported the encryption keys to her machine with the same
results.

The only thing I can think of is that her machine is using a different
version of the encrtyption algorithims?

So I had her run windows update on her machine, couple things got
updated sql server mostly.

I logged on to her machine, deployment worked.
She logged on to her machine, deployment worked.
The keys were created months ago. Any idea what happened?



.



Relevant Pages

  • RE: SBS SHared Printer Problem
    ... Does this issue happen for all the client workstations? ... If you try printing on the SBS server, ... Clear the registry keys and the driver on both the server and the client ... Microsoft Shared Fax Monitor ...
    (microsoft.public.windows.server.sbs)
  • Re: SBS SHared Printer Problem
    ... They are shared from the server. ... please right click following registry keys and click ... Microsoft Shared Fax Monitor ... Install the latest driver for the printer and check if the issue ...
    (microsoft.public.windows.server.sbs)
  • Encrypted forums challenges
    ... Police went to an ISP where a server of a group of left wing ... keys, you don't get to know about it" problem. ... that grow following normal social networks relationships to encrypt the ...
    (sci.crypt)
  • Re: uniqid() function
    ... value if the PHP script is on only one server? ... Why do you not use the autoincrement featuer of the Database? ... - In these times you might need to actually create the data structure ... So you generate all the keys outside your server ...
    (comp.lang.php)
  • Re: Stupid license key question - OEM
    ... I haven't dealt with OEM for SBS 2008 Premium, ... Using Windows Small Business Server 2008 Product Keys ... product key, the product key is provided on the Certificate of Authenticity ...
    (microsoft.public.windows.server.sbs)