Skip to content

Server not recognising signed certificates #8

@Iuhegi

Description

@Iuhegi

Hi!

I decided to play around with this tool to see if I could get it working. Here are the steps I have taken:

  1. I installed the latest SPL (4.6.0) on the client and server.
  2. I created an instance on the minecraft launcher using the recommended forge (35.1.0) versions.
  3. I ran the client to generate the servermods folder.
  4. I ran the server to generate a whitelist, servermods folder and fix the eula
  5. I edited the serverpacklocator.toml files on both the server and client to accurately reflect the IP address being used for the server.
  6. I moved the client's serverrequest.csr to the server for signing, and signed it using the following batch file.
@echo off
java -cp ..\mods\serverpacklocator-4.6.0.jar;..\forge-1.16.4-35.1.0.jar cpw.mods.forge.serverpacklocator.cert.CertSigner "..\servermods\cacert.pem" "..\servermods\ca.key" < serverrequest.csr > servercert.pem.tmp
more +1 servercert.pem.tmp > servercert.pem
del servercert.pem.tmp
  1. I moved the servercert.pem back to the client's servermods folder.
  2. I installed mods on the server into the servermods folder.
  3. I whitelisted the players trying to connect to the server, and enabled the whitelist. (thanks @MichaelHillcox for reminding me to add this step)
  4. I started the server
  5. I started the client

After starting the client, the client fails to connect to the server with the following messages appearing in the log:

11:10:47.605
[11:10:47] [main/INFO] [cp.mo.fo.se.PackLocator/]: Loading server pack locator. Version 4.6.0+38+02276cd
11:10:48.840
[11:10:48] [pool-2-thread-1/ERROR] [cp.mo.fo.se.cl.SimpleHttpClient/]: Failed to receive successful data connection from server. Are you whitelisted?
11:10:48.841
[11:10:48] [main/INFO] [cp.mo.fo.se.cl.ClientSidedPackHandler/]: There was a problem with the connection, there will not be any server mods

And the following message appears in the server's log:

[14Dec2020 11:10:48.842] [ServerPack Locator Slave - 3/WARN] [cpw.mods.forge.serverpacklocator.server.RequestHandler/]: Disconnected unauthenticated peer at /81.100.192.88:50350 : Received fatal alert: certificate_unknown

Here is a link to both logs in full

Any help with resolving this and getting the tool working would be great as I would like to use this tool for a private server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions