I want to enable SSL on my local computer for an asp.net 4.0 web site. What steps do I need to take? I want to use a free SSL certificate.
4 Answers
If this is for development purposes with Visual Studio 2010 SP1:
- Install IIS Express 7.5.
- Open your web project in Visual Studio 2010.
- Right click the project and select "Use IIS Express".
- Select the project in the soultion explorer and open the properties window (don't right click and open properties, you need the properties window that you can get with pressing
F4
by default, used with the designer usually) - Set
SSL Enabled
to true.
If this is for serving web pages outside of development, that entirely depends on your setup.
If you want to use SSL on your localhost for testing, use a self signed cert.
Here's info on free SSL / TSL solution: https://www.startssl.com/
Haven't tried this myself, but documentation etc. seems to be OK.