1. Bước 1 cài đặt certbot
*ubuntu
https://vietnix.vn/cach-lay-chung-chi-ssl-tren-ubuntu-20-04-bang-certbot/
*macos
https://topdev.vn/blog/huong-dan-tao-lets-encrypt-certificates/
*centos
https://www.snel.com/support/install-lets-encrypt-centos-7/
* windows
2. Tạo chứng chỉ tại Local
ví dụ: ta cần SSL 90 ngày domain.com
certbot certonly –server https://acme-v02.api.letsencrypt.org/directory –manual –preferred-challenges http -d 'domain.com'
==> Sau khi chạy hệ thống báo:

Bạn phải thực hiện theo 2 bước dưới đây:
+ Upload tập tin “Qm-hNor61YjZE8HT3t51omzG5cVy1svZsn_ZsYND1Z” trên thư mục server : path/.well-known/acme-challange/Qm-hNor61YjZE8HT3t51omzG5cVy1svZsn_ZsYND1Z
với Nội dung: Qm-hNor61YjZE8HT3t51omzG5cVy1svZsn_ZsYND1ZE.JeixuRCLAniyqPIw_xYs01Z5TSZCLHDxhoMV8Rv82kc
+ Truy cập trên trình duyệt xem liệu có chính xác chưa: http://domain.com/.well-known/acme-challenge/Qm-hNor61YjZE8HT3t51omzG5cVy1svZsn_ZsYND1Z
Bước 3: Sau khi có Certificate -> tải về máy tính
cert.pem
fullchain.pem
privkey.pem
Bước 4: Đăng nhập vào hosting/server VPS
+ Tìm domain đã tạo chứng chỉ
+ Tìm nơi cho phép “cập nhật” SSL cho domain
**Tuỳ theo một số server mà các cập nhật khác nhau: ví dụ dùng cpanel
+ Khung certificate, mở file fullchain.pem, lấy dòng đầu tiên
+ Khung private key, mở file privkey.pem
+ Khung CABundle, mở file fullchain.pem, lấy dòng đầu cuối
+ Cập nhật
Bước 5: Done!.
Chia sẻ:







