You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Brielle Bruns d5d6dfa159 no message 1 月之前
cron Permissions 4 年之前
CHANGELOG Updates to to make it more foolproof. 4 年之前
DSTROOTCAX3.txt Initial import 4 年之前
LICENSE Add license 4 年之前 Update readme 4 年之前
apache-le-alias.conf Initial import 4 年之前
apache-le-proxy.conf Initial import 4 年之前 no message 1 月之前 no message 1 月之前 Fixing a few things... 4 年之前
nginx-le-root.conf Added nginx config 3 年之前

Lets Encrypt Scripts

Public Git URL:

By: Brielle Bruns

These are various scripts to make LetsEncrypt easier to use.


Main Scripts - Main script to make it easy to generate LE certs for domain(s) - Script to add LE cert to a Unifi controller

Support Files

DSTROOTCAX3.txt - Root CA cert for use with the script (now optional and unneeded as the cert is embedded)

apache-le-alias.conf - Use with apache for LE well-known alias config

apache-le-proxy.conf - Use with apache for LE well-known proxy config

How To Use

  1. Do initial cert generation (if using webroot, see script contents for more methods of authentication): -e -d -d -r /var/www/letsencrypt-root/
  2. Copy cron/ to /etc/cron.weekly, edit as appropriate

  3. Run:

     chmod 750 /etc/cron.weekly/  
  4. Script will now run weekly and renew the certificate if necessary ( < 30 days remain). Don't forget to add any necessary file copies/symlinks/service restarts as needed once the scripts are updated.

  1. Do initial cert generation: -e -d -d
  2. Put in /etc/cron.weekly/renew-unifi-ssl if everything works okay:

     /path/to/script/ -r -d -d
  3. Script will now run weekly and renew the certificate if necessary ( < 30 days remain) and restart unifi only if cert has been renewed.