Go to file
Brie Bruns 8f7abbb44d Updating gen-unifi-cert.sh 2016-03-24 19:03:47 -06:00
CHANGELOG Add changelog 2016-02-27 14:25:34 -07:00
DSTROOTCAX3.txt Initial import 2016-02-19 21:13:25 -07:00
LICENSE Add license 2016-02-27 14:24:22 -07:00
README.md Updating gen-unifi-cert.sh 2016-03-24 19:03:47 -06:00
apache-le-alias.conf Initial import 2016-02-19 21:13:25 -07:00
apache-le-proxy.conf Initial import 2016-02-19 21:13:25 -07:00
gen-cert.sh Fixing +x 2016-02-27 15:02:24 -07:00
gen-unifi-cert.sh Updating gen-unifi-cert.sh 2016-03-24 18:59:12 -06:00
get-letsencrypt.sh Fixing a few things... 2016-02-27 15:14:45 -07:00


Lets Encrypt Scripts

Public Git URL: https://source.sosdg.org/brielle/lets-encrypt-scripts

By: Brielle Bruns bruns@2mbit.com

These are various scripts to make LetsEncrypt easier to use.


Main Scripts

gen-cert.sh - Main script to make it easy to generate LE certs for domain(s)

gen-unifi-cert.sh - Script to add LE cert to a Unifi controller

##Support Files

DSTROOTCAX3.txt - Root CA cert for use with the gen-unifi-cert.sh script (the above file is 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:

     gen-unifi-cert.sh -e email@address.com -d unifi.somedomain.com -d unifi.someotherdomain.com
  2. Put in /etc/cron.weekly/renew-unifi-ssl if everything works okay:

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