Delivering a web page in HTTPS

99 Views Asked by At

I have an ASP.NET website running on Cassini web server. This website will not be published on the internet but will only be used for demonstration purposes.

Now, I want to deliver the log-in page using HTTPS instead of HTTP. How can this be done please?

I have tried adding the following to the web.config file but it is giving me an error:

<secureWebPages enabled="true">
    <file path="LogIn.aspx" />
  </secureWebPages>

This code was inserted right after the connectionString tag

1

There are 1 best solutions below

2
SLaks On BEST ANSWER

Cassini does not support HTTPS.

Instead, you can use IIS or IIS Express, which do.

Note that you will also need a certificate trusted by the browser.