PLEASE SEE https://github.com/mtan93/unifi-letsencrypt/ for working up to date version