Appearance
Certbot
Create certificate
bash
sudo certbot certonly -a apache -d sub.example.com
sudo certbot certonly -a apache -d sub.example.com
1
Usage with Apache2 virtualhost
Add these to your <VirtualHost *:443> block:
apache
SSLCertificateFile /etc/letsencrypt/live/sub.example.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/sub.example.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/sub.example.com/chain.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/sub.example.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/sub.example.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/sub.example.com/chain.pem
Include /etc/letsencrypt/options-ssl-apache.conf
1
2
3
4
2
3
4