开发者

Web Farm Encryption Troubleshooting

I want to use a shared RSA Key Container for our web farm to encrypt the web.config.

I have followed all the documented steps, including using the -pa switch to authorize the identity of my app pool on the key.

Has anyone still had problems AFTER authorization? Any suggestions are greatly appreciated.

Error Message:

Fail开发者_StackOverflow社区ed to decrypt using provider 'RsaSharedProvider'. Error message from the provider: The RSA key container could not be opened.

Provider:

    <providers>
        <add name="RsaSharedProvider" keyContainerName="MyKeys" useMachineContainer="false" description="Uses RsaCryptoServiceProvider to encrypt and decrypt" type="System.Configuration.RsaProtectedConfigurationProvider,System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
    </providers>

Steps:

  1. Encrypt the webconfig in an automated build

    <Exec Command="$(_aspNetRegIisExe) $(_pefApp) $(_websiteDirectory)" />
    <Exec Command="$(_aspNetRegIisExe) $(_pefCon) $(_websiteDirectory)" />
    
  2. Publish the website to my destination server


Just need to correct one property:

useMachineContainer="true"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜