Page 1 of 1

TLS Setup

Posted: Mon Jun 13, 2022 5:38 pm
by Space_Balls
Hello,
I've started a dedicated server for FS22 and I want it to use TLS for the web panel but I can't get it to work.
I have created an origin certificate with Cloudflare and linked the certificate in the "dedicatedServer.xml". It seems to work and when I go to mydomain.com:8443 everything seems fine until I try and log in. Then after I press the login button after entering my credentials it just resets the page.

What am I missing, and is there a way to get rid of the port at the end of my URL?

Re: TLS Setup

Posted: Mon Jun 13, 2022 10:12 pm
by Dezza69
From memory; I removed sone of the references to the secondary certificates contained in the dedicated server xml (the one for the actual dedicated server in the exe folder, not the other one in your game save folder) and started it.

The server created the required certs, but they were self-signed, so I need to “trust” them when going to the https://ihavednssetup.andownmyowndomainname.com:8443/ webpage.

Edit:
Will paste/post example shortly…

Re: TLS Setup

Posted: Mon Jun 13, 2022 10:20 pm
by Dezza69
Here's the code from my dedicatedServer.xml

This is the file located wherever the actual dedicatedserver.exe file is.

<tls port="8443" active="true">
<certificate>cert.pem</certificate>
<privatekey>pk.pem</privatekey>
<intermediateCertificates />
</tls>

Whenever the dedicated server restarts it generates a new certificate and I need to "trust" it again when going to the webpage.

Hope that helps.

Happy Farming!!!

Re: TLS Setup

Posted: Thu Jun 16, 2022 10:29 am
by Space_Balls
That sadly doesn't help.
The problem is that I'm not using a self-signed certificate, I'm trying to use my own from Cloudflare.
But now it allows me to sign in but it says the certificate is not trusted because there's not enough information about the certificate

Re: TLS Setup

Posted: Thu Jun 16, 2022 11:57 am
by Dezza69
Space_Balls wrote: Thu Jun 16, 2022 10:29 am That sadly doesn't help.
The problem is that I'm not using a self-signed certificate, I'm trying to use my own from Cloudflare.
But now it allows me to sign in but it says the certificate is not trusted because there's not enough information about the certificate
Ok...

Also, if your browser isn't trusting the certificates isn't that possibly something with you needing to trust the cert with your browser/system?

Re: TLS Setup

Posted: Thu Jun 16, 2022 12:12 pm
by Space_Balls
Dezza69 wrote: Thu Jun 16, 2022 11:57 am
Space_Balls wrote: Thu Jun 16, 2022 10:29 am That sadly doesn't help.
The problem is that I'm not using a self-signed certificate, I'm trying to use my own from Cloudflare.
But now it allows me to sign in but it says the certificate is not trusted because there's not enough information about the certificate
Ok...

Also, if your browser isn't trusting the certificates isn't that possibly something with you needing to trust the cert with your browser/system?
Well it should be automatically trusted like this website.

Re: TLS Setup

Posted: Fri Jun 17, 2022 2:31 am
by Dezza69
... that's if it is setup correctly.

I found that the personal dedicated server supplied with the game exe seemed to prefer using/creating it's own certificates (which were generated for the IP address and not a dns qualified name).

Which is why I posted the solution I found worked for me.

Hope you're able to get it sorted.

Re: TLS Setup

Posted: Thu Oct 06, 2022 11:47 am
by tp-ops
Space_Balls wrote: Mon Jun 13, 2022 5:38 pm Hello,
I've started a dedicated server for FS22 and I want it to use TLS for the web panel but I can't get it to work.
I have created an origin certificate with Cloudflare and linked the certificate in the "dedicatedServer.xml". It seems to work and when I go to mydomain.com:8443 everything seems fine until I try and log in. Then after I press the login button after entering my credentials it just resets the page.

What am I missing, and is there a way to get rid of the port at the end of my URL?
I have the same setup with the issue. Setup SSL through cloudflare edge and origin certificates. Everythings works fine execpt authentication is only refreshing the page when DNS Proxy is on at cloudflare DNS. When I turn off DNS Proxy, authentication works fine but then I receive a certification error, as exspected.

I know for sure evenrything with DNS, SSL en Cloudflare is setup wright. I have another server which is working fine with the same config.
I am a networkengineer so knowledge of these termologies isn't the problem but when it comes down to programming there is a tiny little bit of knowlegde.

Re: TLS Setup

Posted: Tue Sep 26, 2023 2:25 pm
by JacoJazz
Did anyone manage to find a fix for this? Still having the exact same issues!

Re: TLS Setup

Posted: Wed Feb 21, 2024 6:32 pm
by Flolingo
I have this issue too.

Re: TLS Setup

Posted: Sat Apr 13, 2024 2:49 pm
by Flolingo
I solved it by using Cloudflare's Zero Trust tunnels.