Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test my ASP.NET page on https://localhost in a development environment? [duplicate]

Possible Duplicate:
HTTPS with Visual Studio's built-in ASP.NET Development Server

I'm writing a C#, ASP.NET web application with the VS 2010 IDE. I do not have the IIS server installed on this Windows 7 machine. All my testing of the web app goes through the "ASP.NET Development Server" that came with Visual Studio 2010. My pages usually load into the web browser with an adress like this: "http://localhost:59215/Default.aspx"

So my question is, can I test it with a HTTPS URL?

And if yes, can someone give me steps?

like image 599
ahmd0 Avatar asked May 28 '12 04:05

ahmd0


1 Answers

Visual Studio 2010 with SP1 now has IIS Express, which will allow you run on SSL.

See here: http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx

You can also create a self-signed certificate to avoid any issues with buying a certificate.

http://weblogs.asp.net/scottgu/archive/2007/04/06/tip-trick-enabling-ssl-on-iis7-using-self-signed-certificates.aspx

like image 72
Matt Hudson Avatar answered Oct 10 '22 12:10

Matt Hudson