2011-01-21 56 views
1

我想爲我們的Web場使用共享的RSA密鑰容器來加密web.config。Web Farm加密故障排除

我按照所有的記錄的步驟,使用-pa開關授權的鑰匙我的應用程序池的標識,包括

有沒有人在授權後仍有問題?任何建議,非常感謝。

錯誤消息:

無法使用提供商 解密 'RsaSharedProvider'。來自提供商的錯誤消息 :RSA密鑰 容器無法打開。

提供者:

<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> 

步驟:

  1. 加密的自動構建

    <Exec Command="$(_aspNetRegIisExe) $(_pefApp) $(_websiteDirectory)" /> 
    <Exec Command="$(_aspNetRegIisExe) $(_pefCon) $(_websiteDirectory)" /> 
    
  2. 的webconfig網站發佈到我的目的地服務器

回答

0

只需要糾正一個屬性:

useMachineContainer="true"