Friday, October 9, 2020

Encrypt connection strings

 This guide shows how to encrypt whole connection string in web.config in an IIS website.

https://blog.elmah.io/the-ultimate-guide-to-connection-strings-in-web-config/


In short, run this command inside command prompt as administrator

aspnet_regiis -pef "connectionStrings" "c:\path\to\the\folder\containing\webconfig"

SSL Error - The connection for this site is not secure

 After cloning a git repo of dot net framework website and trying to run it all I could see was this error Turns out the fix was to simply e...