Wizards of Lua

The Art of Spell Crafting


Creating a Self-Signed SSL Certificate

You can use a self-signed SSL certificate to make the Lua file editor secure.

It you want the internal web server to use HTTPS instead of HTTP, you can easily create your own self-signed SSL certificate and add it to the configuration. Of course, when used for securing HTTPS connections, this requires to be accepted manually by the browser’s user. But fortunately this is only necessary once.

Here is a brief description how you can create your own self-signed SSL certificate, and how you add it to the WoL configuration.

Generating a Self-Signed SSL Certificate using Java’s Keytool

This requires, that Java is installed on your machine, and that it is accessible from the command line.

Adding the SSL-Certificate to your Minecraft Server

RestApi {
  hostname="example.com",
  port=60080,
  secure=true,
  keystore="ssl-keystore.jks",
  keystorePassword="123456",
  keyPassword="123456",
  ...

Please replace example.com with the hostname or the numerical IP address of your server. And replace the values for keystorePassword and keyPassword with the value you chose when you used the keytool.