Đóng Menu
    Facebook YouTube X (Twitter) Instagram
    Xu hướng
    • Cài đặt Let’s Encrypt SSL trên Ubuntu với OpenLiteSpeed gia hạn tự động
    • How To Install WordPress on Ubuntu with a LAMP Stack
    • How to Block OTA updates for iPhone and iPad cuccess 100%
    • Decoding AMP: Demystifying the Pros and Cons of AMP for SEO Success
    • Install Let’s Encrypt SSL on Ubuntu with OpenLiteSpeed auto renewal
    • Best Core Exercises: Top Moves, from Beginner to Advanced
    • Exploring ChatGPT: A Comprehensive Guide on How to Use ChatGPT
    • Empowering Health: Prioritize Early Cancer Screenings for Better Well-being
    Facebook YouTube X (Twitter) Instagram
    SaibABCSaibABC
    Chú thích cho quảng cáo
    • Trang chủ
    • Đời sống
      1. Ngôi sao
      2. Sức khỏe
      3. Tập luyện
      4. Xem tất cả

      15 Most popular celebrities in the world all the time

      23/12/2023

      Empowering Health: Prioritize Early Cancer Screenings for Better Well-being

      05/01/2024

      Best Core Exercises: Top Moves, from Beginner to Advanced

      16/01/2024

      Best Core Exercises: Top Moves, from Beginner to Advanced

      16/01/2024

      Empowering Health: Prioritize Early Cancer Screenings for Better Well-being

      05/01/2024

      15 Most popular celebrities in the world all the time

      23/12/2023
    • Nhàn rỗi
      1. Công nghệ
      2. Kinh doanh
      3. Phượt thủ
      4. Sống đẹp
      5. Thời trang
      Nổi bật

      How to Block OTA updates for iPhone and iPad cuccess 100%

      Bởi Nuj Coom25/05/2024
      Gần đây

      How to Block OTA updates for iPhone and iPad cuccess 100%

      25/05/2024

      Decoding AMP: Demystifying the Pros and Cons of AMP for SEO Success

      28/04/2024

      Exploring ChatGPT: A Comprehensive Guide on How to Use ChatGPT

      11/01/2024
    • Thủ thuật
      1. Blogger HD
      2. Web Hosting
      3. WordPress
      4. Xem tất cả

      The 12 Best AI Content Writing Tools for Bloggers in 2024

      02/01/2024

      Cài đặt Let’s Encrypt SSL trên Ubuntu với OpenLiteSpeed gia hạn tự động

      18/11/2024

      How To Install WordPress on Ubuntu with a LAMP Stack

      22/07/2024

      Install Let’s Encrypt SSL on Ubuntu with OpenLiteSpeed auto renewal

      01/03/2024

      How To Secure Apache with Let’s Encrypt on Ubuntu

      26/12/2023

      How To Install WordPress on Ubuntu with a LAMP Stack

      22/07/2024

      Install Let’s Encrypt SSL on Ubuntu with OpenLiteSpeed auto renewal

      01/03/2024

      The 12 Best AI Content Writing Tools for Bloggers in 2024

      02/01/2024

      How To Install LAMP Stack: Linux, Apache, MySQL, PHP on Ubuntu

      23/12/2023

      Cài đặt Let’s Encrypt SSL trên Ubuntu với OpenLiteSpeed gia hạn tự động

      18/11/2024

      How To Install WordPress on Ubuntu with a LAMP Stack

      22/07/2024

      Install Let’s Encrypt SSL on Ubuntu with OpenLiteSpeed auto renewal

      01/03/2024

      The 12 Best AI Content Writing Tools for Bloggers in 2024

      02/01/2024
    • Shopping
    SaibABCSaibABC
    Home » Install Let’s Encrypt SSL on Ubuntu with OpenLiteSpeed auto renewal
    Web Hosting 3 Phút đọc3 Bình luận

    Install Let’s Encrypt SSL on Ubuntu with OpenLiteSpeed auto renewal

    Nuj CoomBởi Nuj CoomCập nhật:01/03/2024
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Chú thích cho quảng cáo

    Contents

    1. Introduction: Let’s Encrypt SSL
    2. Prerequisites: Let’s Encrypt SSL
    3. Install Certbot: Let’s Encrypt SSL
    4. Choose how you’d like to run Certbot
      1. Yes, my web server is not currently running on this machine.
      2. No, I need to keep my web server running.
    5. Install your certificate
    6. Test automatic renewal
    7. Confirm that Certbot worked

    Introduction: Let’s Encrypt SSL

    Let’s Encrypt is an automated, open certificate authority that offers free TLS/SSL certificates for the public’s benefit. The service is provided by the Internet Security Research Group (ISRG). This tutorial shows how to install a Let’s Encrypt SSL certificate on an Ubuntu 20.04 server with OpenLiteSpeed (~Apache) using the Certbot installation wizard. After completing this tutorial, the server will have a valid certificate and redirect all HTTP requests to HTTPS.

    Prerequisites: Let’s Encrypt SSL

    Let’s Encrypt SSL: This tutorial assumes that you have deployed a Vultr Ubuntu server with OpenLiteSpeed or Apache, have a domain name pointing to your server IP address, and you are logged in as root.

    Install Certbot: Let’s Encrypt SSL

    Install Let’s Encrypt SSL: The recommended installation method for Certbot is with Snap.

    1. Verify snapd is up to date. $ sudo snap install core; sudo snap refresh core
    2. Remove certbot-auto and any Certbot OS packages. $ sudo apt-get remove certbot
    3. Install Certbot with Snap. $ sudo snap install --classic certbot
    4. Link Certbot to /usr/bin. $ sudo ln -s /snap/bin/certbot /usr/bin/certbot

    Choose how you’d like to run Certbot

    Are you ok with temporarily stopping your website?

    Yes, my web server is not currently running on this machine.

    Stop your webserver, then run this command to get a certificate. Certbot will temporarily spin up a webserver on your machine.

    Chú thích cho quảng cáo
    $ sudo certbot certonly --standalone

    No, I need to keep my web server running.

    If you have a webserver that’s already using port 80 and don’t want to stop it while Certbot runs, run this command and follow the instructions in the terminal.

    $ sudo certbot certonly --webroot

    To use the webroot plugin, your server must be configured to serve files from hidden directories. If /.well-known is treated specially by your webserver configuration, you might need to modify the configuration to ensure that files inside /.well-known/acme-challenge are served by the webserver.

    Important Note

    Install your certificate

    You’ll need to install your new certificate in the configuration file for your webserver.

    Test automatic renewal

    The Certbot packages on your system come with a cron job or systemd timer that will renew your certificates automatically before they expire. You will not need to run Certbot again, unless you change your configuration. You can test automatic renewal for your certificates by running this command:

    $ sudo certbot renew --dry-run

    The command to renew certbot is installed in one of the following locations:

    /etc/crontab/ ;/etc/cron.*/* ;systemctl list-timers

    In case the automatic renewal attempt fails, please check the automatic renewal request at /etc/letsencrypt/renewal/domain.com.conf to see if it has been configured correctly (as example shown below).

    renew_before_expiry = 30 days
    version = 2.9.0
    archive_dir = /etc/letsencrypt/archive/saibabc.com
    cert = /etc/letsencrypt/live/saibabc.com/cert.pem
    privkey = /etc/letsencrypt/live/saibabc.com/privkey.pem
    chain = /etc/letsencrypt/live/saibabc.com/chain.pem
    fullchain = /etc/letsencrypt/live/saibabc.com/fullchain.pem 
    Options used in the renewal process 
    [renewalparams]
    account = 56bb8680ab21b3db38f6d756e69139be
    authenticator = webroot
    webroot_path = /var/www/html/saibabc.com
    server = https://acme-v02.api.letsencrypt.org/directory
    key_type = ecdsa
    [[webroot_map]]
    saibabc.com = /var/www/html/saibabc.com
    www.saibabc.com = /var/www/html/saibabc.com

    Confirm that Certbot worked

    To confirm that your site is set up properly, visit https://yourwebsite.com/ in your browser and look for the lock icon in the URL bar.

    Chú thích cho quảng cáo
    Featured Let’s Encrypt OpenLiteSpeed Ubuntu
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Bài viết trướcBest Core Exercises: Top Moves, from Beginner to Advanced
    Bài tiếp theo Decoding AMP: Demystifying the Pros and Cons of AMP for SEO Success
    Nuj Coom
    • Trang web
    • Facebook
    • X (Twitter)
    • Instagram

    I'm a doctor, for sure. But I also love writing and sharing knowledge, life experiences, web tricks, and useful lectures. Let's cheer for your passion.

    Bài viết liên quan

    Cài đặt Let’s Encrypt SSL trên Ubuntu với OpenLiteSpeed gia hạn tự động

    18/11/2024

    How To Install WordPress on Ubuntu with a LAMP Stack

    22/07/2024

    How to Block OTA updates for iPhone and iPad cuccess 100%

    25/05/2024
    Xem 3 bình luận

    3 Bình luận

    1. saibcaaaa lúc 15/11/2024 7:52 Sáng

      Good job. Rất là tốt. Tốt, tốt, tốt.

      Trả lời
      • saibcaaaa lúc 15/11/2024 7:55 Sáng

        Tốt quá, rất hay, bình luận đúng

        Trả lời
    2. Ngôi sao lúc 18/11/2024 4:43 Chiều

      Rất hữu ích, tôi mò mãi không được, vào xem bài này xong thành công tốt đẹp luôn. Thanks

      Trả lời
    Để lại bình luận Hủy trả lời

    Bài gần đây

    What is a LAMP stack ? Unveiling the Power of LAMP Stack

    15 Most popular celebrities in the world all the time

    How To Secure Apache with Let’s Encrypt on Ubuntu

    Empowering Health: Prioritize Early Cancer Screenings for Better Well-being

    Unlocking Online Income: 11 Proven Ways to Make Money on the Internet

    Advertisement
    Chú thích cho quảng cáo

    NHẬN THÔNG BÁO

    Nhận tin tức sáng tạo mới nhất từ ​​SaibABC.Com về các thủ thuật, thiết kế và kinh doanh trên web.

    Copyright © 2024. Designed by NujCoom.
    • Trang chủ
    • Chính sách
    • Liên hệ
    • Mua

    Nhập ở trên và nhấn Enter để tìm kiếm. Nhấn Esc để hủy.