aizu's Knowledge Base
    • Go to: aizu.my Homepage
    • Recent
    • Tags
    • Register
    • Login

    Generate SSL cert Let's Encrypt - certbot

    Linux
    1
    1
    57
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      aizu
      last edited by aizu

      # apt install certbot python3-certbot-nginx
      # certbot --nginx -d example.com -d www.example.com
      

      Certbot will modify nginx /site-available/default file, and append the 443 entry.

      It also will install certbot's service for auto renew.

      # systemctl status certbot.timer
      

      To test the auto-renew.

      certbot renew --dry-run
      

      Ref: https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04

      1 Reply Last reply Reply Quote 0
      • First post
        Last post