Can't get McMyAdmin admin UI working over SSL

  • 28 Views
  • Last Post 4 days ago
ploppy posted this 6 days ago

I'm having a problem getting the McMyAdmin admin UI working over SSL. System details are:

McMyAdmin 2.7.1.0 Professional Edition
CentOS 7
java-1.8.0-openjdk

I'm stopping McMyAdmin via the console with a /quit, then editing the following settings in the Webserver section of the McMyAdmin.conf file to something like below, then restarting McMyAdmin:

Webserver.Port=8080
Webserver.useHTTPS=True
Webserver.CertificatePath=./certificate.pfx
Webserver.CertificatePassword=password

The browser just won't connect, for example in Chrome I see:

This site can’t be reached
ERR_CONNECTION_TIMED_OUT

I have set the Monitoring.LogLevel=0 but I don't see much at all in the log. If I leave the port set to 8080 I see this including the line "Starting webserver..." and no error about the web server, but the UI isn't available:

Notice  : Detecting System...
Notice  : No virtualized environment detected.
Notice  : Linux Distribution: CentOS
Notice  : Detection complete.
Info    : Reading configuration, please wait...
Info    : Config loaded.
Warning : Unable to detect java version! Java may not be installed or may be outdated.
Notice  : Licence Valid. Thank you.
Notice  : Server ID: 43324093-a646-4d82-bdcf-711972d222c7
Notice  : Starting McMyAdmin Professional v2.7.1.0
Info    : Checking for existing schedule and loading...
Info    : Finished loading schedule.
Notice  : Checking for updates...
Notice  : Checking for Minecraft Server updates...
Notice  : Starting webserver...
Info    : Loading McMyAdmin users...
Notice  : McMyAdmin has started and is ready for use.
Events  : Event Raised at 9/10/2019 5:00:46 PM
Raised by       :Core
Title           :McMyAdmin Started

Info    : Waiting to start Minecraft server...
Events  : Event Raised at 9/10/2019 5:00:47 PM
Raised by       :Core
Title           :Starting Minecraft Server

Notice  : Server jar hash is 48703cec-a019-8e50-3991-cb896d6e02ee
Info    : Minecraft Config loaded.
Notice  : Starting Minecraft Server...
Info    : Minecraft server started with PID 2681

If I change the port to 443, then I see the following in the log:

Notice  : Server ID: 43324093-a646-4d82-bdcf-711972d222c7
Warning : Port number is less than 1024, this may cause permission errors.
Notice  : Starting McMyAdmin Professional v2.7.1.0
Info    : Checking for existing schedule and loading...
Info    : Finished loading schedule.
Notice  : Checking for updates...
Notice  : Checking for Minecraft Server updates...
Notice  : Starting webserver...
Info    : Loading McMyAdmin users...
Error   : Web server could not start. Type /reset to retry.
Notice  : McMyAdmin has started and is ready for use.

If I change the port to 8085 I see:

Notice  : Checking for updates...
Notice  : Checking for Minecraft Server updates...
Notice  : Starting webserver...
Info    : Loading McMyAdmin users...
Notice  : McMyAdmin has started and is ready for use.

Things I'm doing or have tried:

  • using the URL https://hostname:port
  • set port to 8080, 443, 8085
  • opened the firewall for the ports I'm using
  • saved the cert to the McMyAdmin directory
  • did a chown user:user certificate.pfx where user is the non root user I installed to, and run from
  • did a chmod 0775 certificate.pfx
  • in the McMyAdmin.conf, tried a path like ./certificate.pfx, and also /home/user/McMyAdmin/certificate.pfx
  • created a .pfx cert from my DNS provider (ionos) using their on-line tool using the intermediate cert
  • created a .pfx cert from my DNS provider (ionos) using their on-line tool but not using the intermediate cert
  • downloaded the server and intermediate cert from my provider and used openssl to make my own .pfx cert
  • created a self signed .pfx cert

There's a couple of things I'm wondering about or didn't succeed with:

  • maybe there are more settings I need to change?
  • my provider does not offer a root cert for download, just a server and intermediate certificate, maybe that's an issue? Shouldn't a self signed cert work around that problem (albeit with a security warning?) Maybe I should buy a cert from somewhere else?
  • maybe the warning about detecting Java version is an issue? I've been unsuccessful so far setting the java home and path variables, or manually setting the Java.Path= variable in the McMyAdmin.conf file. The game runs fine.
  • maybe I'm missing some Linux packages? The CentOS install I did looks very minimal, for example I needed to install packages like wget and unzip.

Any help or suggestions will be much appreciated!

Mike posted this 4 days ago

I advise you use McMyAdmin 3/AMP rather than MCMA2, which your Pro licence is good for.

Close