Certbot requests Let’s Encrypt certificates and wires up HTTPS. You need a domain pointing at the VPS IP and ports 80/443 open.
Steps
Install Certbot with your web server plugin (Ubuntu, Nginx example):
sudo apt updatesudo apt install -y certbot python3-certbot-nginxFor Apache, install the matching plugin:
sudo apt install -y certbot python3-certbot-apacheIssue and install the certificate (replace domain and email):
sudo certbot --nginx -d example.com -d www.example.com --agree-tos -m [email protected] --redirectTest automatic renewal:
sudo certbot renew --dry-run
Tips
- If DNS does not point to the VPS yet, the HTTP-01 challenge will fail.
- Apache only:
sudo certbot --apache -d example.com ….
ext step
HTTPS in minutes on your own server: Deploy your Cloud VPS.