2016-02-19 21:18:14 -07:00
|
|
|
Lets Encrypt Scripts
|
2016-02-20 10:15:33 -07:00
|
|
|
|
2016-02-19 21:18:14 -07:00
|
|
|
Public Git URL: https://source.sosdg.org/brielle/lets-encrypt-scripts
|
2016-02-20 10:15:33 -07:00
|
|
|
|
2016-02-19 21:18:14 -07:00
|
|
|
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)
|
2016-02-19 21:20:47 -07:00
|
|
|
|
2016-02-19 21:18:14 -07:00
|
|
|
gen-unifi-cert.sh - Script to add LE cert to a Unifi controller
|
|
|
|
|
|
|
|
Support Files
|
|
|
|
=============================================================
|
|
|
|
DSTROOTCAX3.txt - Root CA cert needed for use with the gen-unifi-cert.sh script
|
2016-02-19 21:20:47 -07:00
|
|
|
|
2016-02-19 21:18:14 -07:00
|
|
|
apache-le-alias.conf - Use with apache for LE well-known alias config
|
2016-02-19 21:20:47 -07:00
|
|
|
|
2016-03-08 12:32:11 -07:00
|
|
|
apache-le-proxy.conf - Use with apache for LE well-known proxy config
|
|
|
|
|
|
|
|
How To Use
|
|
|
|
=============================================================
|
|
|
|
|
2016-03-08 12:34:44 -07:00
|
|
|
##gen-unifi-cert.sh
|
|
|
|
|
|
|
|
1. Do initial cert generation:
|
2016-03-08 12:32:11 -07:00
|
|
|
|
2016-03-08 12:34:44 -07:00
|
|
|
`gen-unifi-cert.sh -e email@address.com -d unifi.somedomain.com -d unifi.someotherdomain.com`
|
2016-03-08 12:32:11 -07:00
|
|
|
|
2016-03-08 12:34:44 -07:00
|
|
|
2. Put in /etc/cron.weekly/renew-unifi-ssl if everything works okay:
|
2016-03-08 12:32:11 -07:00
|
|
|
|
2016-03-08 12:34:44 -07:00
|
|
|
`/path/to/script/gen-unifi-cert.sh -r -d unifi.somedomain.com -d unifi.someotherdomain.com`
|
2016-03-08 12:32:11 -07:00
|
|
|
|
2016-03-08 12:34:44 -07:00
|
|
|
3. Script will now run weekly and renew the certificate if necessary ( <30 days remain)
|
2016-03-08 12:32:11 -07:00
|
|
|
and restart unifi only if cert has been renewed.
|