Groups | Blog | Home
all groups > dotnet security > june 2006 >

dotnet security : How to make SSL work for .NET 2.0 web apps


Rob R. Ainscough
6/1/2006 7:29:00 PM
I've successfully installed my Verising SSL pro certification on my web
server, but I'm not sure how to force IIS to use SSL on my deployed web app
residing on that server?

Any hints?

what I currently have is www.myDomain.com works but issues a security
warning from IE but my site still functions as normal.
https://www.myDomain.com also works and I see the secure lock icon in IE
(with no prompt this time). I think what I want is that www.myDomain.com
will automatically get redirected to https:// - Am I missing something
obvious?

How do I get my web app to know that only the directories below my root
should be SSL? I realize my forms authentication will prevent login access,
but how do tell my IIS web server that .aspx pages in this dir are SSL?

Basic questions I know, any help is appreciated -- I've not configured SSL
web server before.

Thanks, Rob.

Rob R. Ainscough
6/2/2006 7:32:15 AM
Nicole,

Excellent link/info, thank you.

Rob.

[quoted text, click to view]

Rob R. Ainscough
6/2/2006 8:46:19 AM
A couple of issues I'm having:

I'm only enabling SSL for a "Secure" directory under my web app's root
directory - not the entire web site. I use forms authentication for
~/Secure/Logon.aspx - my logon page and this resides in my SSL enabled
directory.

My web site redirects a frame to display the ~/Secure/Logon.aspx. I added a
/NotSecure/SSLRedirect.aspx and setup IIS to use this page for 403;4 custom
error only for my Secure directory. I also added the Location path entry in
my web.config for the SSLRedirect.aspx and also authorization setting.
However, when I navigate to the www.mywebsite.com I get "You are not
authorized to view this page" in the frame that should be displaying my
~/Secure/Logon.aspx.

Since I am using forms authentication (on my Secure directory), I'm assuming
that multiple Location entries in my web.config is Ok?

Any hints on how to make SSL work on part of web site (my Secure directory)
using forms authentication and not for the entire web site?

thanks, Rob.


[quoted text, click to view]

Nicole Calinoiu
6/2/2006 9:01:50 AM
You might want to start by reading
http://weblogs.asp.net/pwilson/archive/2004/12/23/331455.aspx then posting
back here if you have any remaining questions.



[quoted text, click to view]

Nicole Calinoiu
6/7/2006 7:47:23 AM
[quoted text, click to view]

Have you tested that the redirection is actually working correctly?


[quoted text, click to view]

Have you tested that the authorization exception is working correctly?
i.e.: Can you successfully navigate to the page without logging in?


[quoted text, click to view]

What is the frame src value?


[quoted text, click to view]

It should be. BTW, you should also be testing that an attempt to view any
of your "secured" pages directly without logging also results in the desired
redirection to the login page.


[quoted text, click to view]

AddThis Social Bookmark Button