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

ssl_import #25

Closed ScrewLooseDan closed 5 years ago

ScrewLooseDan commented 5 years ago

Everything appears to work, but I'm getting an error:

Importing certificate authority into UniFi keystore...

Unable to import the certificate into keystore

Again, I get no certificate errors when going to my unifi controller, just this script throws the error above.

I manually tried running the the code from the script and get the same error.

Something like this:

~$ sudo java -jar /usr/lib/unifi/lib/ace.jar import_cert /etc/letsencrypt/live/example.com/cert.pem /etc/letsencrypt/live/example.com/chain.pem /tmp/tmp.80vtybdzmD
Unable to import the certificate into keystore

Is this step really necessary? I looked at some of the tutorials on the Unifi Forums and don't see this ace.jar file mentioned in them.

My controller version is 5.9.29.

stevejenkins commented 5 years ago

Hey @ScrewLooseDan. The new controller changed the process, and I've just merged a pull request that should work properly with 5.9.29. Please give the newest version a go!