我有一個圖形用戶界面爲我的公司產品。 我想保護在客戶端和服務器之間來回發送的數據。安全的web服務器asp.net
SSL是選項之一嗎?如果是,請告訴我如何在我的應用程序代碼中實現它的步驟。
我是否需要購買證書,或者我可以讓它成爲..這是最好的選擇嗎?
任何幫助表示讚賞。感謝
我登錄使用的FormsAuthenticationTicket如下..:
Session["userName"] = UserName.Text;
Session["password"] = Password.Text;
Session["domain"] = Domain.Text;
string role = "Administrators";
// Create the authentication ticket
FormsAuthenticationTicket authTicket = new FormsAuthenticationTicket(1, // version
UserName.Text, // user name
DateTime.Now, // creation
DateTime.Now.AddMinutes(60),// Expiration
false, // Persistent
role); // User data
// Now encrypt the ticket.
string encryptedTicket = FormsAuthentication.Encrypt(authTicket);
// Create a cookie and add the encrypted ticket to the
// cookie as data.
HttpCookie authCookie =
new HttpCookie(FormsAuthentication.FormsCookieName,
encryptedTicket);
// Add the cookie to the outgoing cookies collection.
Response.Cookies.Add(authCookie);
// Redirect the user to the originally requested page
Response.Redirect(FormsAuthentication.GetRedirectUrl(UserName.Text, false));
我不知道如何安全的,這是?有什麼建議麼。
所以我發現這個鏈接..for SSL安裝。希望能幫助到你。 http://www.windowsecurity.com/articles/Protect-Web-Servers-SSL.html 和 http://security.fnal.gov/pki/webauthors.html – user175084 2010-07-20 15:40:47