Certbot Installation and Configuration(Ubuntu)
1. Installation: Begin by updating your package list and installing Certbot using the following commands: sudo apt update sudo apt install certbot python3-certbot-nginx 2. Configuring Certbot for Nginx: Certbot offers automated Nginx configuration. Execute the command below to acquire and install a certificate. Certbot will seamlessly modify your Nginx configuration to enable HTTPS: sudo certbot –nginx Certbot will lead you through the process, prompting for the domain names you wish to secure. It will then handle the automatic configuration of your Nginx server block(s) with the new certificate. > Note: If opting for the standalone method (not recommended if Nginx is already active), replace '--nginx' with '--standalone'. 3. Certificate Renewal: Certificates issued by Certbot have a 90-day lifespan. Automate the renewal process with a cron job that efficiently renews certificates nearing expirati