– The following errors were reported by the server: (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching : Timeout during connect (likely firewall problem)
Starting new HTTPS connection (1): įailed authorization procedure. Plugins selected: Authenticator standalone, Installer None Saving debug log to /var/log/letsencrypt/letsencrypt.log :/usr/local/sbin# /usr/local/sbin/gen-unifi-cert.sh -e -d įound LetsEncrypt/Certbot binary at /usr/bin/certbotįiring up standalone authenticator on TCP port 80 and requesting cert… Haber si alguien puede ayudarme, tras intentarlo varias veces, obtengo un error y el certificado no acaba de generarse y configurarse al ejecutar la ultima sentencia de comandos. Using Let’s Encrypt with Unifi Controller
How to install and update via APT on Debian or Ubuntu Special thanks to my buddy Sibghat ( ) for correcting the cron job given above. PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/binĠ */12 * * * root test -x /usr/local/sbin/gen-unifi-cert.sh & /usr/local/sbin/gen-unifi-cert.sh -r -d
Then add the following code in this file: SHELL=/bin/sh You can also setup a cron job to automate certificate renewal process like this: touch /etc/cron.d/unifi-cert You would need to renew the certificate using the following command: /usr/local/sbin/gen-unifi-cert.sh -r -d Let’s Encrypt certificates are valid for 3 months. Now your Unifi controller should be accessible on with a valid SSL certificate. In the last step – in addition to your sub-domain – you also need to specify your email address which will be used to send you notices if your SSL certificate is about to expire: /usr/local/sbin/gen-unifi-cert.sh -e -d Wget -O /usr/local/sbin/gen-unifi-cert.shĬhmod +x /usr/local/sbin/gen-unifi-cert.sh Install certbot for SSL certificate setup: apt-get install certbotĭownload shell script for SSL certificate setup and make it executable: cd /usr/local/sbin Once that is setup we’re ready to use Let’s Encrypt to install SSL certificate on your controller.
For example, if you own the domain called “”, you can create a sub-domain like “” and point that towards your controller’s IP. To setup SSL you need a domain that’s pointing to your Unifi Controller’s IP address. Sudo wget -O /etc/apt//unifi-repo.gpg Ĭomplete the installation of Unifi Controller: sudo apt install unifi Prepare for installation: echo 'deb stable ubiquiti' | sudo tee /etc/apt//100-ubnt-unifi.list Install dependencies: sudo apt update & sudo apt install ca-certificates apt-transport-https Use the following procedure to install the latest version of Unifi Controller on your system. I recommend using Ubuntu 18.04 specifically because I’ve seen all sorts of issues related to Java Runtime Enviroment on Ubuntu 16. This guide shows you how to install Unifi Controller on a Ubuntu 18.04 machine and set up a valid SSL certificate on it using Let’s Encrypt.