Changes

From SME Server
Jump to navigationJump to search
682 bytes added ,  17:50, 8 December 2015
→‎Renew of the certs: Add cron instructions
Line 39: Line 39:  
== Renew of the certs ==
 
== Renew of the certs ==
   −
A simple script to renew cert :
+
The following script will automatically renew your certificate.  Save it in a convenient place, for example, /opt/letsencrypt-renew.sh
    
  #!/bin/bash
 
  #!/bin/bash
Line 51: Line 51:  
  /sbin/e-smith/signal-event ibay-modify
 
  /sbin/e-smith/signal-event ibay-modify
   −
You may want to set this up as a cron job to run every two months, to make sure your certificate doesn't expire. Please see '''[[Crontab_Manager]]''' contrib for an easy way to achieve this.
+
You may want to set this up as a cron job to run every two months, to make sure your certificate doesn't expire. Please see '''[[Crontab_Manager]]''' contrib for an easy way to achieve this.  Or, to set this from the command line, do the following:
 +
 
 +
# export EDITOR=nano
 +
# crontab -e
 +
 
 +
The following example will run the renewal script at 22:48 on the third of every other month (Feb, Apr, Jun, etc.):
 +
 
 +
48 22 3 */2 * /opt/letsencrypt-renew.sh
 +
 
 +
The time and day of the month can be chosen at your discretion--I've deliberately chosen a time that isn't at the top or bottom of the hour, or on the first of the month, in the hope of reducing load on letsencrypt's servers.  Since the certificates are good for 90 days, this will renew your certificate in plenty of time.
    
== Backup ==
 
== Backup ==
147

edits

Navigation menu