stevejenkins / unifi-linux-utils

Helpful Linux / Unix scripts for admins of Ubiquiti (UBNT) UniFi wireless products
https://www.stevejenkins.com/blog/tag/unifi/
MIT License
695 stars 127 forks source link

Debian error #16

Open Theolodewijk opened 6 years ago

Theolodewijk commented 6 years ago

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.

Theolodewijk commented 6 years ago

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

Theolodewijk commented 6 years ago

No support here ?

murdz112 commented 6 years ago

I'm getting the same error :(

seanmavley commented 6 years ago

@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

the-random-user commented 6 years ago

So what was the fix?

seanmavley commented 6 years ago

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

acoolov commented 5 years ago

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

flmdsoundman commented 7 months ago

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

Any update?