$ sudo apt install certbot python3-certbot-apache

$ sudo a2ensite your_domain.conf

$ certbot install --cert-name your_domain
$ sudo certbot --apache

Other related commands.

$ sudo certbot certificates

$ sudo certbot delete
$ sudo certbot delete --cert-name $your_domain

$ apachectl start
$ apachectl -D DUMP_VHOSTS

$ sudo certbot certonly --force-renew -d domain.com