How to secure login and member area with SSL certificate?

Posted by citronas on Stack Overflow See other posts from Stack Overflow or by citronas
Published on 2010-03-06T16:08:27Z Indexed on 2010/03/12 9:47 UTC
Read the original article Hit count: 305

Filed under:
|
|

Background: I have a asp.net webapplication project that should contain a public and a member area. Now I want to implement a SSL decription to secure communication between the client and the server. (In the university we have a unsecured wireless network and you can use a wlan sniffer to read username/password. I do not want to have this security problem for my application, so I thought of a ssl decription)

The application is running on a IIS 7.5. It it possible to have one webapp that has unsecured pages (like the public area) and a secured area (like the member area, which requires a login)? If yes, how can I relealise the communication between these too areas?

Example: My webapp is hosted on http://foo.abc. I have pages like http://foo.abc/default.aspx and http://foo.abc/foo.aspx.

In the same project is page like /member/default.aspx which is protected by a login on the page http://foo.abc/login.aspx.

So I would need to implement SSL for the page /login.aspx and all pages in /member/

How can I do that? I just found out how to create SSL certificates in IIS 7.5 and how to add such a binding to a webapp. How how can I tell my webapp which page should be called with https and not with http. What is the best practise there?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#