kchristensen / udm-le

Let's Encrypt support for Ubiquiti UniFi OS
MIT License
605 stars 80 forks source link

Can't apply certificate to captive portal - No java #102

Open mrk3767 opened 4 weeks ago

mrk3767 commented 4 weeks ago

In the current version of firmware for my UDM, the java binary doesn't exist. I did a search for it and it doesn't look like it's anywhere on disk unless I missed it.

root@Daiya:/data/udm-le# java
-bash: java: command not found

https://github.com/kchristensen/udm-le/blob/3e91eaeb4fdb7d9368c8ce7db97a52b7a284df84/udm-le.env#L140C18-L140C70

mrk3767 commented 4 weeks ago

I was able to add the certs using KeyStore Explorer (Windows app). I went to Tools > Add Import Key Pair. I selected both files and set the password on the imported pair. I then renamed it to unifi and uploaded it back to the controller.

kchristensen commented 3 weeks ago

What version are you running? I'm on 4.1.5 on my UDW, and things seem to be working fine (java is /usr/bin/java).

mrk3767 commented 2 weeks ago

UniFi OS v4.0.20 Network 8.5.6

Linux Daiya 4.19.152-ui-alpine #4.19.152 SMP Thu Sep 12 13:20:59 CST 2024 aarch64

root@Daiya:~# ls /usr/bin/ | grep java
root@Daiya:~#
kchristensen commented 2 weeks ago

Anyone else on v4.0.20 that can confirm? My udw is on v4.1.5 and it's still there, and I checked a udmse on v4.0.6 that also has it at /usr/bin/java.

mgd43b commented 2 days ago

I'm on 4.0.21 and it's there