sudo apt-get update sudo apt-get install software-properties-common sudo apt-get install certbot sudo apt-get install python-certbot-apache # apache config sudo certbot --apache sudo certbot --apache -d your_domain -d www.your_domain
#install certbot sudo apt update sudo apt install certbot sudo apt install python3-certbot-apache # for apache sudo apt install python3-certbot-nginx # for nginx # Get certificate sudo certbot --nginx --domain yourdomain.com # for nginx sudo certbot --apache --domain yourdomain.com # for apache