admin

Hướng dẫn Xử lý lỗi SSL example.com trên CyberPanel

admin

Max Ping!!!
Thành viên BQT
[AD]
Reputation: 22%
    Hôm nay tự dưng đẹp trời con SSL cấp bởi LetsEncrypt lăn ra lỗi - mặc dù bình thường là gần hết hạn là nó tự động gia hạn.

    Cũng mày mò mãi trên forum của CyberPanel mãi chưa thấy thì vồ đc bài của bác SysAdmin Đỗ Trung Quân (AzDigi) thấy chuẩn nên copy đăng lại bài lên forum cho ae nào cần.
    akfpwJb.jpg

    Bước 1: Update ACME lên bản mới nhất.


    Bạn hãy SSH vào máy chủ CyberPanel và thực hiện update với lệnh sau. Sau khi đã update hoàn tất bạn thực hiện tiếp Bước 2 nhé.
    Mã:
    wget -O - https://get.acme.sh | sh

    Bước 2: Cài đặt SSL Let’s Encrypt


    Sau đó bạn debug ssl khi sử dụng ACME, thay tên domain thành tên miền cần cấp ssl của bạn
    Mã:
    /root/.acme.sh/acme.sh --issue -d dotrungquan.info -d www.dotrungquan.info --cert-file /etc/letsencrypt/live/dotrungquan.info/cert.pem --key-file /etc/letsencrypt/live/dotrungquan.info/privkey.pem --fullchain-file /etc/letsencrypt/live/dotrungquan.info/fullchain.pem -w /home/dotrungquan.info/public_html --force
    Khi đó bạn sẽ gặp một Log debug báo lỗi cần phải đăng ký email cho tên miền, hiện tại ACME sử dụng ZeroSSL as default CA now thì bạn thực hiện như sau
    Mã:
    acme.sh --register-account -m [email protected]
    Và bây giờ bạn hãy chạy lại lệnh issue trong ssh hoặc issue ssl trên giao diện Cyberpanel
    Mã:
    /root/.acme.sh/acme.sh --issue -d dotrungquan.info -d www.dotrungquan.info --cert-file /etc/letsencrypt/live/dotrungquan.info/cert.pem --key-file /etc/letsencrypt/live/dotrungquan.info/privkey.pem --fullchain-file /etc/letsencrypt/live/dotrungquan.info/fullchain.pem -w /home/dotrungquan.info/public_html --force

    Chúc bạn thực hiện thành công.

    AE nhớ thay dotrungquan.info / www.dotrungquan.info thành domain của bạn cần xử lý nhé!
    Bài viết gốc: dotrungquan.info
     


    Phần mềm LiveStream PC tốt nhất - Best LiveStream PC Software


    Phần mềm LiveStream PC tốt nhất - Best LiveStream PC Software

    Top