????? SSL ?ASP.NET

?????? ????????? ?????? ?????????
???? ???????: 910444 - ??? ???????? ???? ????? ????? ??? ???????.
???? ????? ??? ASP.NET

????? SSL ?ASP.NET

?????? ??? ?????? ??? ?????????? ??? ???? ???? ?????? ??????? ??? ???????? ???? ???? ? ??????? ???????? ???? ???? ???? ?????? ????? ??????? ?? ???????? ???????? ????? ?????. ????? ????? ???????? ????? Ask For It ??????? ??????????. ???? ????? ?????? ??? ??????? ?? ???? ??? ??????.
????? ???? | ?? ????

?? ??? ??????

?????? ?? ?? ???? ????? ??? ASP.NET! ???? ????? ????? ?? Jerry Orman. ?? ?? Microsoft ???? ?? ??? ????? ?? ???? ???? ????? ?????? ?? ???? ??? ?????? ??? ??? ????? ??? Microsoft FrontPage ? Microsoft ?????? ??????? Sharepoint. ??? ???????? ????? ??????? ????? ?? Microsoft ASP.NET ??? ????? ???. ??? ????? ?????? ????? ?????? ??? ????? SSL ASP.NET. ????? ???? ???? ?? ??????? ??? ???????? ???? ???? ?? ????? ??????. ??? ???? ????????? ??? ????? ???? ??? ????? SSL ? ??? ??????? ?????? ??? ??????? ??? ??????? ????? ??.

????? SSL ????? ??? ???? ??? ?????? ????????? ???????? ???? ?????? ???? ?????? ??? HTTP ???? ???? ???? ??? ???? ??? ????? ?? ??????? ???? ?????? ?? ????? ????????. ?? ??? ???????? ??? ??????? ????? ???? ???? HTTPS ???????. ????? SSL ????? ????? ??? ???:
?????? < ? HTTPS ? > ?????? SSL < ? HTTP ? > ???? ???
???? ???? ????? ??? ????????? ???? ???? ?? Microsoft ASP.NET 2.0 ?? ??? ??????? ??? ????? ??????? ?????? ??? ??????.

??????? ??????

??? ?????? ??? ???? ????? ?? ???? ???? ASP.NET 2.0 ????? ???? ??? ????? ????? ???????:
????? ??? ?????? ??? ????? ???? ???? ??? ??????. ?? ???? ??? ??????? ??? ????
??????? ?? ??????? ?? ???? ???? ? ??? ?????? ???????? SSL ?? ??? ?????? ?? ????? ?????? ???? ??? ????? ???? ???? ??? HTTP ?????. ?? ??????? ?? ??? ??????? ?

?????? ???? ??????? ?? ???? ???? ????? emits ??? JavaScript ?????? ???? iFrame ?????? ??????? ???? ?????. ??? ???? ????? ?????? ???? ?????. ????? ????? ???? ??? ?????? ??? ???? SSL ??? ?????????? ?????? ???????? ????? ???: ????? ?? URL. ??? ???? ???????? ????? ??? ????? ????? ???? ?????? ??? ??? ?????. ????? ?? ????????? ??? ??? ??????? ?? Microsoft Windows SharePoint Services ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
837850???? ????? "????? ??? ?????? ??? ????? ???? ???? ??? ??????" ??? ????? ??? ????? ??? "????????" ?? ????? ??????? ?? Windows SharePoint Services ?? ?? SharePoint Team Services ?? Microsoft
??? ???? ???? ????? ????????? ??? SSL ??? ??? ?? ???? ???? ??? ???? ???? HTTPS ????? ?? ???? SSL ? JavaScript emits ???? ???? ????? ????? ??? ?? ????????? ???????? ?????? ???? ???? iFrame ??? ????? HTTPS ?? ???? ??? ??????. ??? ???? ??? ??? ???? ???? ???? ????? ???. ??? ??? ???? ??? ?? ??? ????? ?? ???? ????? ??? ????? JavaScript ???? ???? ????? ????? ?? ???? ????? ??? ???????? ???????? ??? ?????? ???? ????? ??? ???? ???? ?????.
 <script runat="server">
   protected override void Render(HtmlTextWriter writer) 
   {
        Page.ClientScript.RegisterStartupScript(typeof(Page), "MenuHttpsWorkaround", 
        Menu1.ClientID + "_Data.iframeUrl='https://myserver/someblankpage.htm';", true);
        base.Render(writer);
   }
</script>
 
????? ?????? ??? ?? ??????? ?? ??? MasterPage ?? ??? UserControl ? ?????? ?? ??? ???????? ???????? ??? ????? ???.

??????? 2

?? ??? ??? ????? ???? ???? ??? requireSSL<forms> ????? ?????? ??? "????" ? ?????? ?????? ?? ????? ???????? ??? ???? ????? ?????? FormsAuthentication. ???? ??? ???? ????? ?? ????? ?????? ????? FormsAuthenticationModule ????? requireSSL. ??? ??? ?????? ????? requireSSL ??? true ??????? FormsAuthenticationModule ?????? ??? ????? ?????? ???? ?? ????? ??? ????. (??? ?????? ?? ???? ??? ?? .NET Framework 1.1.) ??? ??????? ??? ??? ?????? ???? ??? ????? ??? ????? ???????? ??? ?????? ??? ??? ?????? ?????? SSL. ??? ????? ????? ? ??? ?????? ??????? ?????? SSL. ?????? ?? ???? ???? SecurePage.aspx ?? ???? ?????????? ????????? ??????. ?? ???????? SSL ? ??? requireSSL ???? ????? ?? ???? ?????? ??????? ??? ??? ???? ??? SecurePage.aspx:
? > ???? ???? ??? GET ????? SecurePage.aspx.

<? ?????? ???? ?? 302 HTTP (????? ?????) ??? ???? ????? ??????.

? > ???? ???? ??? GET ????? Login.aspx.

<? ?????? ???? ?? 200 ?????. ??? ??? ???? ????? ?????? ??? ??????.

? > ?????? ?????? ??? POST ??? Login.aspx.

<? ?????? ???? ?? 302 (????? ?????) ??? SecurePage.aspx. ??? ????? ??? ??? ????? ???????? ?????? ????? ?????? ??? ??????.

? > ?????? ?????? ??? GET SecurePage.aspx. ??? ????? ??? ????? ???????? ??? ?????? ?????? SSL.

<? ?????? ???? ?? 302 (????? ?????) ??? ???? ????? ?????? ??? ????.

????? ?????? ??? ????? ??????? ?? ????? ?????? ????? ????? ?? ??? FormsAuthenticationModule. ??? ????? ???????? ?????? ?? ASP.NET 2.0 ?????? ?? ??? ??? ???????? ?? ????? ??? ??? ????? ?????? ??? ??? ??? ??? SSL. ????? ASP.NET 2.0 ??? FormsAuthenticationTicket ??? ?? ????? ??????? FormsAuthentication.RequireSSL ??? false ?? ??? ?? ????? ??? Request.IsSecure ??? true.
  • ??? ????? ??????? FormsAuthentication.RequireSSL ??? false ??? ?? ????? ??? requireSSL ??? false ?? ??? ???????.
  • ??? ????? ??? Request.IsSecure ??? true ??? ??? ???? ??? ????? ???? ???? SSL.
??? ?? ??? ?????????? ???? ??? ?? ????? ???? ???? SSL ?????? ??? requireSSL ??? true ? ??? ??????? ????? false. ?????? ????? ?? ??? ????? ??? FormsAuthenticationTicket ?? ??? ????? ??? ????? ???????? ?? ?????? Request.Cookies.

??? ????? ???????? ????? ?? ??? ??????? ??? ?????? ?? ??? ?????? ??? ?? ?????? ?????? ????????. ??? ???? ?????? ????? ???? ?? ?????? ASP.NET ? ??? UrlAuthorizationModule ????? ?? ??? ??? ???????? ???? ???? ?????? ??? ??????. ???? ??? ??? ?????? ????? ?? ?????? ??? ???? SecurePage.aspx ??? UrlAuthorizationModule ?????? ????? ??? 401 ("?? ??? ??????") ? ???? ???? ????? ????? ??? ???? ????? ??????.

????? ??? ?????? ????? ???? ????? ????? requireSSL ?? <forms> ??????? ?? ??? ???????. ?? ??? ???? ????? ??? ??? ??????? ??? FormsAuthentication ??? ????? ????????. ???????? ???????? ??????? ???? ??? ??? ??? ????? ???????? FormsAuthentication ? ??? ????? ?????? ????.
void Application_EndRequest(object sender, EventArgs e)
{
     if (Response.Cookies.Count > 0)
     {
          foreach (string s in Response.Cookies.AllKeys)
          {
               if (s == FormsAuthentication.FormsCookieName || s.ToLower() == "asp.net_sessionid")
               {
                    Response.Cookies[s].Secure = true;
               }
          }
     }
}

?????

????? ?? ????????? ??? ???? ???? ????? ?? ?????? ???? ???? ????? Microsoft (MSDN) ?????? ??? ?????:
http://msdn2.microsoft.com/en-us/library/2xt3t8a7(vs.80).aspx
????? ?? ????????? ??? ????? requireSSL ??????? FormsAuthentication.RequireSSL ?? ?????? ???? MSDN ??????:
http://msdn2.microsoft.com/en-us/library/system.web.security.formsauthentication.requiressl.aspx
????? ?? ????????? ??? ????? IsSecure ??????? HttpRequest.IsSecureConnection ?? ?????? ???? MSDN ??????:
http://msdn2.microsoft.com/en-us/library/system.web.httprequest.issecureconnection(vs.71).aspx
????? ?? ????????? ??? ??? FormsAuthenticationModule ?? ?????? ???? MSDN ??????:
http://msdn2.microsoft.com/en-us/library/system.web.security.formsauthenticationmodule.aspx
????? ?? ????????? ??? ??? UrlAuthorizationModule ?? ?????? ???? MSDN ??????:
http://msdn2.microsoft.com/en-us/library/system.web.security.urlauthorizationmodule.aspx


????? ?? ??? ??? ????????? ????? ??? ??????? SSL ????? ? Microsoft ASP.NET. ???? ???? ??????? "????? ???" ??! ????? ????? ?? ????? ??????? ??? ???????? ???? ?????? ??????? ?? ???????? ????? ?? ?? ??????? ???????? ????? Ask For It.

???????

???? ???????: 910444 - ????? ??? ??????: 12/?? ??????/1428 - ??????: 1.3
????? ???
  • Microsoft ASP.NET 2.0
????? ??????: 
kbmt kbhowto kbasp KB910444 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????910444
????? ??????? ?? ????? ???? ?? ????? ???????
?? ????? ????? ?????? ???? ???? ???? ??? ??????? ??? ?? ? ?? ??? ??????? Microsoft ??? ????? ??? ??????? ????? ?????? ?????

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com