Ubuntu/Enable SSL with Let's Encrypt

From Mana zināšanu grāmata
 
cd /home/username
sudo wget https://dl.eff.org/certbot-auto && sudo chmod a+x certbot-auto
sudo ./certbot-auto --apache --agree-tos --rsa-key-size4096 --email user@domain.org --redirect -d nc.domain.org

Where:
--apache uses the Apache plugin to fully setup and integrate with the existing Apache configuration
--agree-tos simply pre-agrees to the TOS, preventing it popping up during installation
--rsa-key-size defines the length (and therefore security) of the RSA key. Default is 2048.
--email is the email address to register against the certificate (used for reminders by Let’s Encrypt)
--redirect will create both the SSL virtualhost configuration file and add a redirect for HTTP traffic to HTTPs (80 to 443)
-d is the domain to secure

 

sudo crontab -e
0 0 * * 0 /home/username/certbot-auto renew