Skip to content

Instantly share code, notes, and snippets.

@VirtuBox
Created August 23, 2016 15:03
Show Gist options
  • Save VirtuBox/89e5cdc55f646da2feadc5a1672472b4 to your computer and use it in GitHub Desktop.
Save VirtuBox/89e5cdc55f646da2feadc5a1672472b4 to your computer and use it in GitHub Desktop.

install git

  apt-get install git

clone letsencrypt

git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt

setup letsencrypt with your domain

cd /opt/letsencrypt
./letsencrypt-auto --apache -d example.com
./letsencrypt-auto --apache -d example.com -d www.example.com
./letsencrypt-auto renew

setup autorenew

sudo crontab -e
30 2 * * 1 /opt/letsencrypt/letsencrypt-auto renew >> /var/log/le-renew.log

for update

cd /opt/letsencrypt
sudo git pull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment