Код: Выделить всё
a2enconf le
Код: Выделить всё
apachectl -t
Код: Выделить всё
service apache2 restart
Код: Выделить всё
apt install certbot
тестовое получение сертификата
Код: Выделить всё
certbot certonly --dry-run --webroot -w /var/www/letsencrypt -d example.com
Код: Выделить всё
certbot certonly --webroot -w /var/www/letsencrypt -d example.com -d www.example.com
Код: Выделить всё
a2ensite example.com-ssl
Код: Выделить всё
a2enmod ssl
Код: Выделить всё
apachectl -t
Код: Выделить всё
service apache2 restart
systemctl reload apache2