dotnet security:
Hopefully one of the RSA guru's here can help me with this one.
I have a server with two sites running, one on port 80, the other on port
8080.
The application I'm working with is running under the site on port 8080 and
for this example I'll use the name of "test" for the virtual directory of the
application (so to access the app its http://localhost:8080/test).
After configuring the web.config with the user name and password that I want
to encrypt:
<appSettings>
<add key="UserName" value="TestUser" />
<add key="Password" value="TestPassword" />
</appSettings>
Then adding the "configProtectedData" section:
<configProtectedData>
<providers>
<add keyContainerName="CustomKeys" useMachineContainer="true"
description="Uses RsaCryptoServiceProvider to encrypt and decrypt"
name="CustomProvider"
type="System.Configuration.RsaProtectedConfigurationProvider,System.
Configuration, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</configProtectedData>
I then run the aspnet_regiis tool to encrypt the "appSettings" section:
aspnet_regiis -pe "appSettings" -app "/test" -prov "CustomProvider"
The problem is that when I attempt to run this I get an error that the site
"/test" and "Default Web Site" cannot be opened and that there is an error in
the "site" parameter.
How do I run this to take in account a virtual server that is not on port
80? (this seems to be where the issue lies).
On another test machine that only had one site (port 80), I was able to
encrypt the web.config section with no problems, but since I've tried it on
this box I havent had any success yet.
Thanks in advance for any help offered on this!