Implement HTTPS On MVC Web Application
- The first article describes how to install a new rapidSSL certificate
- The second describes how to install a self-signed certificate (not signed with any trusted certificate authority, mainly used for testing purposes) - you want to do this
- The last article describes what to do if you want to restrict your mvc website only to https (http requests will ben not possible then). Steps 1 or 2 must be completed before you start to work on this. It depends on your requirements if you need to restrict your site only to https.
Ron
“An ounce of prevention is worth a pound of cure.” B.F You can reach me here [email protected]
Updated on June 10, 2022Comments
-
Ron almost 2 years
I have a web app (ASP.NET MVC4) and I need to enable HTTPS/SSL to it.
I checked a lot of articles and tutorials on how to do it, but I didn't get one thing:
Some places talks only about the configuration of IIS :
- RapidSSL:
- Nice blog:
http://weblogs.asp.net/scottgu/tip-trick-enabling-ssl-on-iis7-using-self-signed-certificates
And some places talks only about code (within the app):
- TrailMax:
http://tech.trailmax.info/2014/02/implemnting-https-everywhere-in-asp-net-mvc-application/
So my question is how I need to approach this topic?
I want to enable the HTTPS with a temporary self-signed certificate and then buy a real certificate, what do I need to do? Configure IIS? Configure my code? Both?
If someone could guide me through this.
Thank you