stevejenkins/unifi-linux-utils

Debian error

Theolodewijk opened this issue · 8 comments

I get the follow error after I follow https://blog.khophi.co/use-letsencrypt-unifi-controller-ubuntu/

sudo ./unifi_ssl_import.sh

Starting UniFi Controller SSL Import...

Running in Let's Encrypt Mode...

Inspecting current SSL certificate...

Updated SSL certificate available. Proceeding with import...

Missing one or more required files. Check your settings.

celan install last debian version, up to date.
clean install unifi controler 5.5.20

No support here ?

I'm getting the same error :(

@Theolodewijk Hi,

I just faced a similar issue. Solution was, there is/was a mismatch in the ssl generated. To explain.

If you generated your ssl with letsencrypt using a command like

sudo letsencrypt certonly --standalone --email your@email.com --text -d domain.com -d www.domain.com

Then in your ./unifi_ssl_import.sh, for the UNIFI_HOSTNAME, the value should be domain.com, and not www.domain.com

Letsencrypt uses the first domain to create the live, folder in /etc/letsencrypt

So what was the fix?

The error was a domain hostname mismatch. Solution was ensuring the domain name in the /etc/letsencrypt matches what's in the SSL import file

I got the same error. How do I fix it?

Same error here, clean install of everything, domain name matches.

Any update?