h-mdm / hmdm-server

Mobile Device Management System for Android: web control panel. Manage Android devices, install and update apps, get device info. See website for more features!

Home Page:https://h-mdm.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trouble with Letsencrypt

Quaffio69 opened this issue · comments

Running into a little trouble getting my deployment running. There's specifically an issue when running the letsencrypt-ssl.sh where the server fails the verification challenge and the script ends. This is strange because it is reachable over WAN unencrypted. I'm attaching the error. tomcat9 running on Ubuntu 20.04 live server with most up to date hmdm.
letsencrypterror

Some fixes I've already tried
-Syncing time on the bios of the server this is running on
-Forwarding ports 8080,8443 to the hmdm server
-Reinstalling ubuntu and hmdm
-Run hmdm_install.sh many times
-edit build.properties.example to be build.properties

LetsEncrypt uses port 80 to validate the domain, and certbot temporarily runs nginx to answer the validation request.

If port 80 is blocked on a firewall or occupied by another program (nginx or Apache), LetsEncrypt will fail.