Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMP server fails to get HTTPS credentials, XFTP fine #1373

Open
ruckel opened this issue Oct 21, 2024 · 4 comments
Open

SMP server fails to get HTTPS credentials, XFTP fine #1373

ruckel opened this issue Oct 21, 2024 · 4 comments

Comments

@ruckel
Copy link

ruckel commented Oct 21, 2024

The script I'm running results in the XFTP server getting up and running, but the SMP server fails with the error: no HTTPS credentials: /etc/opt/simplex/web.crt, /etc/opt/simplex/web.key

OS: NixOS

$ openssl version
OpenSSL 3.0.14 4 Jun 2024 (Library: OpenSSL 3.0.14 4 Jun 2024)
smpdomain=smp.xyz.xy
xftpdomain=xftp.xyz.xy

smprun() {
sudo certbot certonly --standalone -d $smpdomain --key-type rsa --rsa-key-size 4096
docker run \
-e "ADDR=${smpdomain}" \
-p 5223:5223 \
-v $HOME/simplex/smp/config:/etc/opt/simplex:z \
-v $HOME/simplex/smp/logs:/var/opt/simplex:z \
simplexchat/smp-server:latest
}

xftprun(){
sudo certbot certonly --standalone -d $xftpdomain --key-type rsa --rsa-key-size 4096
docker run \
-e "ADDR=${xftpdomain}" \
-e "QUOTA=20gb" \
-p 444:444 \
-v $HOME/simplex/xftp/config:/etc/opt/simplex-xftp:z \
-v $HOME/simplex/xftp/logs:/var/opt/simplex-xftp:z \
-v $HOME/simplex/xftp/files:/srv/xftp:z \
simplexchat/xftp-server:latest
}

smprun & 
xftprun

Any pointers?

@Mo0nbase
Copy link

Getting this same issue but with the SMP server

@witome
Copy link

witome commented Dec 1, 2024

The same issue too, Do you have solved?

@Lesnoy40rt77
Copy link

Same issue

@quatrejuin
Copy link

quatrejuin commented Jan 2, 2025

I encountered the same problem today.

It seems /etc/opt/simplex/web.crt, /etc/opt/simplex/web.key are only used for the built in web service to show the server info page with tls. See explanation in #1399. Since I'm using Nginx reverse proxy, I don't need the https connection in this docker.

The solution I found is quite simple. So I commented these 3 lines in ~/simplex/smp/config/smp-server.ini:

#https: 443
#cert: /etc/opt/simplex/web.crt
#key: /etc/opt/simplex/web.key

And uncommented 1 line:
http: 8000

Then I restarted the container.

If you really want to use https and LetsEncrypt. I guess you need to generate the cert and key file by certbot and then rename them to web.cert and web.key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants