Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Encrypt web.config file

Encrypt web.config file

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdockerhelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rock Star
    wrote on last edited by
    #1

    Hi I am not able encypt web.confige file. I am able to Create a custom RSA key container by running command C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -pc “MyKeys” -exp after Specify a protected data provider in web.config file and running on following command to encypt the web.config file it gives the list of all command related to ASP .NET registration options and my web.config file is not encrypted C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -pef "SensitiveAccountInfo" "path" -prov “MyProvider” Please Help me in it. Thanking You!.

    Rock Star

    A C 2 Replies Last reply
    0
    • R Rock Star

      Hi I am not able encypt web.confige file. I am able to Create a custom RSA key container by running command C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -pc “MyKeys” -exp after Specify a protected data provider in web.config file and running on following command to encypt the web.config file it gives the list of all command related to ASP .NET registration options and my web.config file is not encrypted C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -pef "SensitiveAccountInfo" "path" -prov “MyProvider” Please Help me in it. Thanking You!.

      Rock Star

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      Did you read this tutorial ? http://msdn.microsoft.com/en-us/library/ms998283.aspx[^] :)

      Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


      My Latest Articles-->** Windows7 API Code Pack
      Simplify Code Using NDepend
      Basics of Bing Search API using .NET

      R 1 Reply Last reply
      0
      • A Abhishek Sur

        Did you read this tutorial ? http://msdn.microsoft.com/en-us/library/ms998283.aspx[^] :)

        Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


        My Latest Articles-->** Windows7 API Code Pack
        Simplify Code Using NDepend
        Basics of Bing Search API using .NET

        R Offline
        R Offline
        Rock Star
        wrote on last edited by
        #3

        Thanx I got the solution I juast forgot to set the read permission on provider

        Rock Star

        1 Reply Last reply
        0
        • R Rock Star

          Hi I am not able encypt web.confige file. I am able to Create a custom RSA key container by running command C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -pc “MyKeys” -exp after Specify a protected data provider in web.config file and running on following command to encypt the web.config file it gives the list of all command related to ASP .NET registration options and my web.config file is not encrypted C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -pef "SensitiveAccountInfo" "path" -prov “MyProvider” Please Help me in it. Thanking You!.

          Rock Star

          C Offline
          C Offline
          carlecomm
          wrote on last edited by
          #4

          hi, you can follow the steps as below: step1: Make sure These are not encrypted,such as                            Step 2, Create a RSA key container, you can use the command :aspnet_regiis -pc "ABeenKeys"–exp Step 3, Modify web.config to identify the key container Step 4 , Encrypt the section of your web.config file > aspnet_regiis -pe "connectionStrings" -app "/connectionTest"

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups