Skip to content

Fix "Not Trusted" issue on Self-Hosted Servers

This step is necessary if you want your client programs to connect to a self-hosted server.

Problem

Programs are unable to connect to self-hosted servers due to a "not trusted" error.

Solution

In general, you will need to add the certificate you created to your computer's certificate storage (names may vary based on OS). This allows the program to establish a trusted connection to your server.

Detailed steps for doing this are listed below for each OS.

WINDOWS 1. Open the Microsoft Management Console by opening the Run window (Win + R) and executing "mmc.exe". You'll need this to run as administrator -- try not to alter anything else. 2. In the MMC window, select File in the menu bar and select Add/Remove Snap-in. 3. In the Add or Remove Snap-ins window, scroll down, and select Certificates, then select Add. 4. A pop-up asks which certificates you want to manage. Select Computer account, then select Next. 5. Select Local computer: (the computer this console is running on), then select Finish. 6. You can also choose My user account or Service account depending on your needs, but for accessing the Trusted Root Certification Authorities, choose Computer account. 8. Locate Trusted Root Certification Authorities in the newly added server. Add your certificate to this store.

MAC - Under construction: however, the certificate store is called a "Keychain". If you wish to add detailed steps, please send an issue to the GitLab repository.

LINUX - Under construction. If you wish to add detailed steps, please send an issue to the GitLab repository.

FINAL STEPS Once you've installed your certificate in the proper certificate store, replace the certificate links in the default.json5 file with your certificates. Remember to use the certificate you just created in your programs.

Sources:

Windows: https://learn.microsoft.com/en-us/windows-hardware/drivers/install/trusted-root-certification-authorities-certificate-store