# Install certbot sudo apt install certbot sudo apt install python3-certbot-nginx # for nginx sudo apt install python3-certbot-apache # for apache # Generate certificate sudo certbot --nginx -d -d www. # for nginx sudo certbot --apache -d -d www. # for apache