Automate HTTPS encryption, TLS 1.3 protocol configuration, and automated 90-day certificate renewals
By following this guide, your domain will be secured with a free, trusted Let's Encrypt SSL/TLS certificate. Certbot will configure Nginx automatically to redirect HTTP to HTTPS and set up automatic renewal cron jobs.
Spin up an Ubuntu 24.04 instance with instant activation to test this tutorial:
Deploy IndSoft VPSAn Ubuntu server running Nginx with your domain DNS record pointing to your server's public IP address.
Install Certbot using the snap package manager or official apt repository.
sudo apt install certbot python3-certbot-nginx -yRun Certbot with the --nginx flag to automatically detect virtual hosts and install certificates.
sudo certbot --nginx -d example.com -d www.example.comCertbot installs a systemd timer that tests renewal twice daily. Run a dry run to verify renewability.
sudo certbot renew --dry-runRun this quick verification check to confirm your installation is responding properly:
curl -Iv https://example.com 2>&1 | grep 'SSL certificate verify ok'Quick resolutions for frequent setup pitfalls and configuration issues.
sudo systemctl stop apache2.
dig +short example.com.
sudo nginx -t to inspect line numbers in your configuration file. Check for duplicate ssl_certificate directives.