certbot apache install

C++
sudo apt install python3-certbot-apachesudo 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

Source

Also in C++: