letsencrypt / certbot

Create/update certificate

sudo systemctl stop apache2
sudo certbot certonly --cert-name --standalone -d ","
sudo systemctl start apache2

The created certificates can be used for HTTPS in Apache in a VirtualHost configuration:

SSLEngine On
SSLCertificateFile /etc/letsencrypt/live/
SSLCertificateKeyFile /etc/letsencrypt/live/
SSLCertificateChainFile /etc/letsencrypt/live/

List certificates

certbot certificates

Remove certificate (interactively)

certbot delete


sudo service apache2 stop ; sudo certbot renew ; sudo service apache2 start