RSA Key Installed Now How Do I Protect Web.config SQL Conn?

Discussion in 'ASP.NET / ASP.NET Core' started by Pointeman, Feb 20, 2012.

  1. We have our RSA Key installed by DiscountASP support. Now how do I protect our web.config SQL Connection password?

    We have .NET 3.5 aspx web site.
     
  2. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

  3. I followed the online tutorials concerning RSA and now have this error on web.config Line 27 when I go to our web site (ie... www.ourdomainname.com).

    Line 25:
    Line 26: <connectionStrings configProtectionProvider="MyRsaProtectedConfigurationProvider">
    Line 27: <EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element"
    Line 28: xmlns="http://www.w3.org/2001/04/xmlenc#">
    Line 29: <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" />

    Here's part of the web.config in question:

    <connectionStrings configProtectionProvider="MyRsaProtectedConfigurationProvider">
    <EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element"
    xmlns="http://www.w3.org/2001/04/xmlenc#">
    <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" />
    <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
    <EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#">
    <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5" />
    <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
    <KeyName>Rsa Key</KeyName>
    </KeyInfo>
    <CipherData>
     

Share This Page