BỘ ĐỀ KIỂM TRA CUỐI KÌ 2 VẬT LÝ 11 - KẾT NỐI TRI THỨC - THEO CẤU TRÚC ĐỀ MIN...
Install ssl xampp
1. Hướngdẫn:
1. Mở cmd của windows
2. Cd tới xamppapache
3. Chạy file makecert.bat
4. Nhập PEM passphrase (ví dụ: 0435626533 -> ghi nhớ nhé)
5. Nhập lại PEM trên
6. Nhậpcác thôngtin theonhưyêucầu.
7. Đặc biệt chú ý tại: CommonName => nhập www.domain.ltd (vídụ:
www.dienthoaitancuong.com)
(trong đó domain.ltd là têndomaincủa bạn)
8. Cài đặt Certificates
- Lưu private keyvào
xamppapacheconfssl.key
- Lưu Certificatesvào
xamppapacheconfssl.crt
- Nếuthích có thể lưuthêmCARootvào:ví dụdienthoaitancuong-ca.crt
9. Cấu hình vhosttại confextrahttpd-vhosts.conf
Thêmđoạn mã sau:
<VirtualHostthaothongthai.edu.vn:443>
DocumentRoot"C:/WEBSERVER/thaothongthai.edu.vn"
ServerName thaothongthai.edu.vn
ServerAlias www.thaothongthai.edu.vn
SSLEngine On
SSLCertificateFile "C:/xampp/apache/conf/ssl.crt/thaothongthai_edu_vn.crt"
SSLCertificateKeyFile"C:/xampp/apache/conf/ssl.key/ thaothongthai_edu_vn.key"
SSLCertificateChainFile "C:/xampp/apache/conf/ssl.crt/ thaothongthai_edu_vn -ca.crt"
<Directory " C:/WEB SERVER/thaothongthai.edu.vn">
Orderallow,deny
Allowfromall
Require all granted
</Directory>
</VirtualHost>
Ghi nhớ các mục bôi đỏ để điềnthôngtinchính xác theodomaincủa bạn.
Nếubạn chèncả SSLCertificateChainFile thìchúý bỏ comment(#) tronghttpd-ssl.conf
xuấthiệntrongthư mục xamppapacheconfextra
10. Sửa Apache Config
- Mở httpd.conf ở xamppapacheconf
- Tìm DocumentRoot và sửa theo DocumentRoot ở trên
- Mở http-ssl.conf ở xamppapacheconfextra
- Cũng sửa DocumentRoot tương tự
2. - Đặc biệtchúý sửa đường dẫnchính xác tại 3 dòngchứa SSLCertificateFile,
SSLCertificateKeyFile,SSLCertificateChainFile.
11. Restart lại Apache trên control của XAMPP và thử lại.
12. Tham khảo:
https://www.adam.co.za/setup-https-in-xampp/