Skip to content

Instantly share code, notes, and snippets.

@mattrude
mattrude / cloudkey-update-cert.sh
Last active May 5, 2021 05:45
Install a Let's Encrypt certificate on a UniFi Cloud Key controller
#!/bin/sh
HOSTNAME="unifi.lan.therudes.com"
EMAIL="matt@mattrude.com"
# Update the System before we start
rm -f /tmp/installed-packages.txt
echo "deb http://ftp.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/backports.list
dpkg --get-selections |awk '{print $1}' |sed 's/:amd64//g' |sed 's/:armhf//g' > /tmp/installed-packages.txt
UPDATE="" # Start out with UPDATE being NULL
@gintsmurans
gintsmurans / debian_unifi_nvr_letsencrypt.bash
Last active November 4, 2024 10:18
Unifi NVR + letsencrypt certificate
#!/bin/bash
## Unifi NVR + letsencrypt certificate
# Remember to use fullchain.pem
# Thanks: https://www.john.geek.nz/2018/05/using-letsencrypt-with-ubiquiti-unifi-video-server/
#
# Also remember adding `ufv.custom.certs.enable=true` to the `/usr/lib/unifi-video/data/system.properties` file
#
HOSTNAME=XXX.gm.lv