Skip to content

Instantly share code, notes, and snippets.

@ranrotx
ranrotx / le-install.sh
Last active June 20, 2018 14:39 — forked from hisnameisjimmy/le-install.sh
Add Nginx and Letsencrypt to an existing Unifi installation
#!/bin/sh
#
# This script stands on the shoulders of giants.
#
# It has been tested on a t2.micro. For best results, run with something with more vCPUs when gennerating DH, then revert to
# t2.micro.
#
# It does the following:
# 1) Makes the Unifi/Certbot software available as a package
# 2) Uses Certbot to request a Lets Encrypt Certificate, and then installs it