You must Sign In to post a response.
  • Category: ASP.Net MVC

    Need to decrypt connection strings on others machines when application run.

    I have encrypted connection strings using below command

    aspnet_regiis.exe -pef "connectionStrings" "D:\sampleProject\DB_Web\DBWeb"

    after that i run the mvc .net application and connectionStrings decrypt automatically and application run successfully.

    But when other persons get latest code of my and run the application they are getting the error of identity model(unable to decrypt connection strings automatically).

    How to set my rsa key for other user who get the latest code from tfs and run application?

    I dont want other person manually fire the command to encrypt the connectionStrings.

    I want to they also able to decrypt connection strings once they get latest code form tfs.
  • #762435
    Hello Sandip,

    If we are using applications in our internal servers with security then it's ok if we deploy our applications in shared host environment then we have chance to arise security problems to avoid these problems.

    Command to Encrypt the connection string :

    aspnet_regiis.exe -pef "connectionStrings" "D:\sampleProject\DB_Web\DBWeb"

    Command to Decrypt the connection string :

    aspnet_regiis.exe -pdf "connectionStrings" "D:\sampleProject\DB_Web\DBWeb"

    Hope this is the exact answer you are looking for.

    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"

  • Sign In to post your comments