sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-apache 

(#в дебиан 9: apt-get install python-certbot-apache -t stretch-backports)

sudo a2ensite magaziny.ru
sudo a2enmod ssl
sudo systemctl stop  apache2
sudo certbot --authenticator standalone --installer apache
sudo systemctl start apache2

Ссылки