Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   Web server (http://quantrinet.com/forum/forumdisplay.php?f=232)
-   -   Bảo mật website với ssl certificate của verisign.com (http://quantrinet.com/forum/showthread.php?t=3016)

hoctinhoc 23-07-2009 11:08 PM

Bảo mật website với ssl certificate của verisign.com
 
BẢO MẬT WEBSITE VỚI SSL CERTIFICATE CỦA VERISIGN.COM


http://msopenlab.com/uploads/thumb_verisignc1mi.jpg



I. Giới thiệu
Giao thức Secure Socket Layer (SSL) được phát triển bởi Netscape, ngày nay giao thức Secure Socket Layer (SSL) đã được sử dụng rộng rãi trên hệ thống mạng nhằm mục đích xác thực và mã hoá thông tin giữa client và server. Cụ thể SSL được sử dụng để mã hóa cho tất cà các protocol hoạt động tại lớp Application như: HTTP, FTP, SMTP, POP, IMAP…



chế mã hóa của SSL:
1. Client phát sinh 1 Session Key ngẫu nhiên khi truy cập đến Server
2. Client yêu cầu Server gởi Certificate (gồm Public Key của Server)
3. Client kiểm tra tính hợp lệ của Certificate
4. Nếu Certificate của Server hợp lệ, Client mã hóa Session Key bằng Public Key của Server
5. Client gởi Session Key đã mã hóa cho Server
6. Server giải mã Session Key đã được mã hóa bằng Private Key
7. Các thông tin trao đổi giữa server và client sẽ được mã hóa và giải mã bằng Session Key


Hiện nay, khi public một web site lên internet, để áp dụng cơ chế mã hóaSSL chúng ta phải thuê SSL Certificate cho Web Server từ các tổ chức cung cấp Digital Certificate như: Verisign, CyberTrust, EnTrust…
Mục đích của bài lab là hướng dẫn cách cấu hình Secure Web Server sử dụng SSL Certificate của VeriSign.com


Bài lab bao gồm các bước:
1. Tạo file Request Certificate
2. Xin SSL Certificate từ VeriSign.com
3. Cấu hình Trusted Root Certification Authority
4. Import SSL Certificate cho Web Server
5. Kiểm tra kết quả

II. Chuẩn bị
- Máy Windows Server 2003
- Cài đặt dịch vụ Internet Information Services (IIS)
- Hosting Web Site với nội dung bất kỳ, truy cập với địa chỉ http://www.MSOpenLab.com
III. Thực hiện
1. Tạo Request Certificate
- Logon Administrator, mở Internet Information Services (IIS) Manager, bung Web Site, chuột phải Default Web Site, chọn Properties
- Hộp thoại Default Web Site Properties, qua tab Directory Security, chọn Server Certificate



http://msopenlab.com/lab/SSL%20CERTI...N/image001.jpg

- Hộp thoại Welcome to the Web Server Certificate Wizard, chọn Next


http://msopenlab.com/lab/SSL%20CERTI...N/image002.jpg

- Hộp thoại Server Certificate, chọn Create anew certificate, chọn Next


http://msopenlab.com/lab/SSL%20CERTI...N/image003.jpg

- Trong hộp thoại Delayed or Immediate Request, chọn Prepare the request now, but send it later, chọn Next



http://msopenlab.com/lab/SSL%20CERTI...N/image004.jpg

- Hộp thoại Name and Security Settings, chọn Next




http://msopenlab.com/lab/SSL%20CERTI...N/image005.jpg

- Trong hộp thoại Organization Information, nhập thông tin như hình bên dưới, chọn Next



http://msopenlab.com/lab/SSL%20CERTI...N/image006.jpg

- Trong hộp thoại Your Site’s Common Name, nhập www.msopenlab.com vào ô Common name, chọn Next




http://msopenlab.com/lab/SSL%20CERTI...N/image007.jpg

- Hộp thoại Geographical Information, nhập thông tin như hình bên dưới, chọn Next



http://msopenlab.com/lab/SSL%20CERTI...N/image008.jpg

- Hộp thoại Certificate Request File Name, để mặc định đường dẫn C:\certreg.txt, chọn Next




http://msopenlab.com/lab/SSL%20CERTI...N/image009.jpg

- Hộp thoại Request File Summary, chọn Next, chọn Finish



http://msopenlab.com/lab/SSL%20CERTI...N/image010.jpg

- Trong hộp thoại Default Web Site Properties, chọn OK, tắt tất cả cửa sổ.



http://msopenlab.com/lab/SSL%20CERTI...N/image011.jpg


2. Xin SSL Certificate từ VeriSign.com
- Mở Windows Explorer, copy nội dụng của file C:\certreq.txt


http://msopenlab.com/lab/SSL%20CERTI...N/image012.jpg


- Mở Internet Explorer, truy cập địa chỉ http://www.verisign.com, chọn Free SSL Trial


http://msopenlab.com/lab/SSL%20CERTI...N/image014.jpg


- Trong cửa sổ Free SSL Trial Certificate, nhập đằy đủ thông tin (*: thông tin bắt buộc), chọn Continue


http://msopenlab.com/lab/SSL%20CERTI...N/image016.jpg

- Cửa sổ Welcome, chọn Continue


http://msopenlab.com/lab/SSL%20CERTI...N/image018.jpg

- Cửa sổ tiếp theo, nhập đầy đủ thông tin vào phần Technical Contact, chọn Continue



http://msopenlab.com/lab/SSL%20CERTI...N/image020.jpg

- Trong ô Select Server Platform, chọn Microsoft. Trong ô Select Version, chọn IIS 6.0. Dán nội dung file certreq.txt vào ô Paste Certificate Signing Request (CSR), optained from your server


http://msopenlab.com/lab/SSL%20CERTI...N/image022.jpg

- Trong ô What do you plan to use this SSL Certificate for?, chọn Web Server, chọn Continue


http://msopenlab.com/lab/SSL%20CERTI...N/image024.jpg

- Trong cửa sổ CRS Information, nhập MSOPENLAB vào ô Challenge Phrase và Re-enter Challenge Phrase. Nhập câu hỏi bất kỳ vào ô Reminder Question, chọn Continue



http://msopenlab.com/lab/SSL%20CERTI...N/image026.jpg

- Trong cửa sổ Order summary & acceptance, chọn Accept



http://msopenlab.com/lab/SSL%20CERTI...N/image028.jpg


- Kiểm tra: xin SSL Certificate thành công


http://msopenlab.com/lab/SSL%20CERTI...N/image030.jpg



3. Cấu hình Trusted Root Certification Authority
- Đăng nhập vào hộp mail, kiểm tra nhận được e-mail từ Support@verisign.com, chọn vảo link như trong hình bên dưới.


http://msopenlab.com/lab/SSL%20CERTI...N/image032.jpg

- Trong trang web của verisign, chọn VeriSign CA Certificates


http://msopenlab.com/lab/SSL%20CERTI...N/image034.jpg



- Cửa sổ tiếp theo, kéo thanh trượt xuống dưới, chọn Secure Site Trial Root CA Certificate

http://msopenlab.com/lab/SSL%20CERTI...N/image036.jpg



- Trong cửa sổ Root CA Certificate, chọn Select All, copy tất cả nội dung


http://msopenlab.com/lab/SSL%20CERTI...N/image038.jpg

- Dán nội dung vào Notepad và save lại với tên ca.cer


http://msopenlab.com/lab/SSL%20CERTI...N/image039.jpg


- Mở Internet Explorer, vào Tools, chọn Internet Options, quatab Content, chọn Certificates



http://msopenlab.com/lab/SSL%20CERTI...N/image040.jpg

- Trong hộp thoại Certificates, chọn Import



http://msopenlab.com/lab/SSL%20CERTI...N/image041.jpg

- Hộp thoại Welcome to the Certificate Import Wizard, chọn Next


http://msopenlab.com/lab/SSL%20CERTI...N/image042.jpg

- Hộp thoại File to Import, chọn Browse, trõ đường dẫn đến C:\ca.cer, chọn Next



http://msopenlab.com/lab/SSL%20CERTI...N/image043.jpg

- Hộp thoại Certificate Store, chọn Automatically select the certificate store based on the type of certificate, chọn Next, chọn Finish



http://msopenlab.com/lab/SSL%20CERTI...N/image044.jpg

- Hộp thoại Security Warning, chọn Yes

http://msopenlab.com/lab/SSL%20CERTI...N/image046.jpg


4. Import SSL Certificate cho Web Server
- Đăng nhập vào hộp mail, mở e-mail của support@verisign.com, copy phần BEGIN CERTIFICATE … như trong hình bên dưới

http://msopenlab.com/lab/SSL%20CERTI...N/image048.jpg



- Dán nội dung vào Notepad, save lại với tên cert.txt


http://msopenlab.com/lab/SSL%20CERTI...N/image049.jpg

- Mở Internet Information Services (IIS) Manager, chuột phải Default Web Site chọn Properties
- Trong cửa sổ Default Web Site Properties, qua tab Directory Security, chọn Server Certificate


http://msopenlab.com/lab/SSL%20CERTI.../image0050.jpg


- Hộp thoại Welcome, chọn Next
- Hộp thoại Pending Certificate Request, chọn Process the pending request and install the certificate, chọn Next


http://msopenlab.com/lab/SSL%20CERTI...N/image050.jpg


- Hộp thoại Process a Pending Request, chọn Browse, trõ đường dẩn đến C:\cert.txt


http://msopenlab.com/lab/SSL%20CERTI...N/image051.jpg

- Hộp thoại SSL Port, giữ mặc định port 443, chọn Next 2 lần, chọn Finish


http://msopenlab.com/lab/SSL%20CERTI...N/image052.jpg

- Trong hộp thoại Default Web Site Properties, chọn View Certificate

http://msopenlab.com/lab/SSL%20CERTI...N/image053.jpg


- Kiểm tra Certificate được cấp bởi Verisign


http://msopenlab.com/lab/SSL%20CERTI...N/image054.jpg

5. Kiểm tra kết quả
- Mở Internet Explorer, truy cập https://www.MSOpenLab.com, kiểm tra truy cập thành công.


http://msopenlab.com/lab/SSL%20CERTI...N/image056.jpg

By Trần Thủy Hoàng
www.msopenlab.com


Bây giờ là 02:08 PM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.