I always seem to forget this. Here is the short answer
If you are doing a physical path
Encrypt:
aspnet_regiis.exe -pef "connectionStrings" C:\path\to\application
Decrypt:
aspnet_regiis.exe -pdf "connectionStrings" C:\path\to\application
If you are doing it for a web application
Encrypt:
aspnet_regiis -pe "connectionStrings" -app "/MyWebsiteApp"
Decrypt:
aspnet_regiis -pd "connectionStrings" -app "/MyWebsiteApp"
Source:
https://msdn.microsoft.com/en-us/library/zhhddkxy(v=vs.140).aspx
No comments:
Post a Comment