How to use HTTPS in an ASP.Net Application

后端 未结 5 445
南笙
南笙 2020-11-29 23:51

I want to use HTTPS in my ASP.NET web application, but only for the Login.aspx page.

How can this be accomplished?

5条回答
  •  感动是毒
    2020-11-30 00:21

    You can publish your own certificate or you can purchase one. The caveat is that purchasing one, depending on the company, means that it's already stored in the certificate store for most browsers. Your self published one will not be and your users will have to take the extra step of installing your cert.

    You don't say what version of IIS you're using, but here are some detailed instructions for IIS 6

    You can purchase relatively cheap certs or you can go with the big boys (verisign) and get an extended validation certificate which turns your address bar in IE, green. It's also a somewhat rigorous validation process and takes time.

    If you know all of the users that will be hitting your website, there's no problem with installing your own. However, for an open website with anonymous users (that you don't know), it's probably best to purchase one that is already in most major browsers, certificate stores.

    You can enable SSL via IIS and require it for only your login.aspx page and not for the rest.

提交回复
热议问题