Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata


curl > /usr/local/bin/certbot-auto
chmod a+x /usr/local/bin/certbot-auto

Manual Run:

certbot certonly --webroot -w /var/www/example -d -d -w /var/www/other -d -d
systemctl stop apache2 ; systemctl stop nginx ; certbot certonly --standalone -w /var/www/example -d -d -w /var/www/other -d -d


cat << 'EOL' >/etc/cron.d/certbot
@daily * * * certbot-auto renew --quiet  --pre-hook "systemctl stop nginx ; systemctl stop apache2"  --post-hook "systemctl start nginx ; systemctl start apache2"

Configure Apache:

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

Configure NGinX:

ssl on;
ssl_certificate /etc/letsencrypt/live/;
ssl_certificate_key /etc/letsencrypt/live/;
  • No labels