SSL certificates encrypt traffic between your server and visitors. Without one, browsers display security warnings that drive visitors away. Certbot automates the installation of free Let’s Encrypt certificates and handles renewal automatically.
You will install Certbot, generate SSL certificates for your domain and configure your web server to serve traffic over HTTPS. Once complete, your site loads securely with the padlock icon visible in browsers.
Certbot generates SSL certificates and automatically configures your web server to use them. This process secures your entire domain and enables HTTPS in one command.
sudo certbot --apache. For Nginx, use sudo certbot --nginx. This generates certificates and modifies your web server configuration to enable HTTPS.Y and press Enter to continue.2 and press Enter.Certbot completes the installation and displays confirmation that your certificates are active. Your web server now serves traffic over HTTPS.
If you host multiple sites or need to specify exact domains, you can generate certificates for specific domain names. This gives you precise control over which domains receive certificates.
-d flag to specify each domain. For Apache, run sudo certbot --apache -d example.com -d www.example.com. For Nginx, run sudo certbot --nginx -d example.com -d www.example.com. Replace example.com with your actual domain name.Certbot generates certificates only for the domains you specified. This approach works well when managing multiple sites on one server.
The certonly option generates SSL certificates without modifying your web server configuration. This is useful for staging environments or when you want to configure HTTPS manually.
sudo certbot certonly --apache. For Nginx, use sudo certbot certonly --nginx. This generates certificates but leaves your web server configuration unchanged./etc/letsencrypt/live/yourdomain.com/. You will need these paths when configuring HTTPS manually.Your certificates are now ready to use. Configure your web server to reference these certificate files when you are ready to enable HTTPS.
After installing certificates, verify that HTTPS works correctly and HTTP traffic redirects as expected. This confirms your site is fully secured.
https://yourdomain.com. You should see a padlock icon in the address bar, confirming the SSL certificate is active.http://yourdomain.com (without the S). Your browser should automatically redirect to the HTTPS version. This confirms the redirect is working correctly.Your SSL certificate is now active and your site loads securely over HTTPS. Certbot will automatically renew your certificates before they expire.
Your site now serves traffic over HTTPS with a valid SSL certificate. You installed Certbot, generated Let’s Encrypt certificates and configured your web server to redirect HTTP traffic to HTTPS. Visitors see the padlock icon in their browser, confirming their connection is encrypted.
Certbot automatically renews certificates before they expire, so you do not need to repeat this process. Check your renewal configuration by running sudo certbot renew --dry-run to confirm automatic renewal is working. Our Debian server setup guide covers additional security hardening steps you may want to implement.
Get scalable resources with our VPS hosting with root access and optional software.
Get VPS HostingPerfect for websites and small businesses unlimited bandwidth with cPanel hosting.
Get cPanel Hosting