ASP.NET and Secure Socket Layer

L

Leszek

Hello,

Is there anywhere on the net a simple step-by-step guide how to implement
SSL with ASP.NET? My Internet provider enables this feature and I would like
to use it to authenticate users on my WebForms.

Thanks,
Leszek Taratuta
 
R

Richard K Bethell

Leszek said:
Hello,

Is there anywhere on the net a simple step-by-step guide how to implement
SSL with ASP.NET? My Internet provider enables this feature and I would like
to use it to authenticate users on my WebForms.

Not sure what you mean - should you not just be able to just prefix https in
the URL, and just go? This normally is all handled by the web server
software (such as IIS), and there certainly is no webform interaction
necessary.

R.
 
L

Leszek

That's great!
I thought I need to do some changes to my webforms or the code.

Thanks,
Leszek Taratuta
 
J

Jacob Yang [MSFT]

Hi Leszek,

Firstly I want to thank Richard for his great help in this issue.

Based on my research and experience, the following articles are useful to
you.

INFO: Help Secure Forms Authentication by Using Secure Sockets Layer (SSL)
http://support.microsoft.com/default.aspx?scid=kb;en-us;813829
"...
By default, the cookie that contains the forms authentication ticket is not
secured when you use forms authentication in a Microsoft ASP.NET Web
application. This article describes how to help secure forms authentication
by using Secure Sockets Layer (SSL)..."

INFO: Building Secure ASP.NET Web Applications Guide
http://support.microsoft.com/default.aspx?scid=kb;en-us;330246
"...
How To: Set Up SSL on a Web Server
..."

I hope it helps.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
A

Adrijan Josic

the only thing you probably need to do is check if your
secure pages have been accessed using HTTPS and not HTTP.
if they're accessed by HTTP you probably should redirect
to HTTPS...

something like this

if(!Request.IsSecureConnection) Response.Redirect
("https://www.mysecuresite.com");
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top