<Directory /var/www/html>
AllowOverride All
</Directory>
Let's Encrypt issues certificates through an automated API based on the ACME protocol. An ACME client is required and certbot client is recommended for such a program. It is very simple to install. Reference: https://letsencrypt.org/getting-started/
$ sudo snap install --classic certbot
$ sudo ln -s /snap/bin/certbot /usr/bin/
$ sudo certbot --apache # select 000-default.conf with https
# certbot modify 000-defaults.conf accordingly.
$ sudo certbot renew --dry-run
add a new domain in the same server. (multiple domains/certificates in a server)
# cd /etc/apache2/certificate/ # openssl req -new -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out apache-certificate2.crt -keyout apache2.key # cd /etc/apache2/sites-available/ # emacs 000-default.conf # certbot --apache --duplicate # it modified 000-default.conf # certbot renew --dry-run