TLS Setup
13 posts
Page 1 of 1
- Space_Balls
- Posts: 3
- Joined: Mon Jun 13, 2022 5:27 pm
- Location: Denmark
TLS Setup
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'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
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…
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
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!!!
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!!!
- Space_Balls
- Posts: 3
- Joined: Mon Jun 13, 2022 5:27 pm
- Location: Denmark
Re: TLS Setup
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
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
Ok...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
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?
- Space_Balls
- Posts: 3
- Joined: Mon Jun 13, 2022 5:27 pm
- Location: Denmark
Re: TLS Setup
Well it should be automatically trusted like this website.Dezza69 wrote: ↑Thu Jun 16, 2022 11:57 amOk...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
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
... 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.
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
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.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 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
Did anyone manage to find a fix for this? Still having the exact same issues!
Re: TLS Setup
I have this issue too.
Re: TLS Setup
I solved it by using Cloudflare's Zero Trust tunnels.
Re: TLS Setup
I made a Zero Trust Organization and installed a Cloudflare Tunnel on my server. In the tunnel configuration I made a public hostname ls.mydomain.at to the internal ip and port of the webinterface. That's it. This link may help you: https://developers.cloudflare.com/cloud ... -networks/
13 posts
Page 1 of 1