Skip to content

Instantly share code, notes, and snippets.

@napolux
Created May 1, 2016 18:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save napolux/b362c248e6f7bea3dac682ce518bef4c to your computer and use it in GitHub Desktop.
Save napolux/b362c248e6f7bea3dac682ce518bef4c to your computer and use it in GitHub Desktop.
Come installare Let's Encrypt su un virtualhost apache su una macchina ubuntu hostata da DigitalOcean
# Installa git
sudo apt-get update
sudo apt-get install git
# Clona il repo di letsencrypt.org
sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
# Crea il certificato per il tuo dominio
cd /opt/letsencrypt
./letsencrypt-auto --apache -d tuodominio.it
./letsencrypt-auto --apache -d tuodominio.it -d www.tuodominio.it
# Imposta il rinnovo automatico
sudo crontab -e
# Aggiungere il rinnovo automatico al cron di sistema
30 2 * * 1 /opt/letsencrypt/letsencrypt-auto renew >> /var/log/le-renew.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment