회사 제품 용 그래픽 사용자 인터페이스가 있습니다. 클라이언트와 서버간에주고받는 데이터의 보안을 유지하려고합니다.보안 웹 서버 asp.net
SSL이 옵션 중 하나입니까? 그렇다면 some1이 내 응용 프로그램 코드에서이를 구현하는 방법에 대한 단계를 말해 줄 수 있습니까?
인증서를 구입해야하나요, 아니면 할 수 있나요 .. 어떤 것이 최선의 선택입니까?
도움을 주시면 감사하겠습니다. 덕분에 ..
내가 로그인하고 다음은 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));
나는이 얼마나 안전한 확실하지 않다? 어떤 제안.
그래서이 링크를 발견했습니다. SSL 설치. 도움이되기를 바랍니다. http://www.windowsecurity.com/articles/Protect-Web-Servers-SSL.html 및 http://security.fnal.gov/pki/webauthors.html – user175084