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

Cannot setup TLS #910

Closed
4 tasks done
man-k28 opened this issue Apr 14, 2024 · 1 comment
Closed
4 tasks done

Cannot setup TLS #910

man-k28 opened this issue Apr 14, 2024 · 1 comment
Labels

Comments

@man-k28
Copy link

man-k28 commented Apr 14, 2024

Subject of the issue

I generated a self-signed SSL certificate on the machine and added it to the tinode.conf config. However, when you try to log in, autocert throws an error

Your environment

Server-side

  • My setup:
    • Ubuntu 22
    • version of Tinode server 0.22.12
    • database Postgres
    • docker

Client-side

  • TinodeWeb/tinodejs: javascript client
  • Tindroid: Android app
  • Tinodios: iOS app

Steps to reproduce

       "tls": {
            // Enable TLS.
            "enabled": true,

            // Listen for connections on this port and redirect them to HTTPS port.
            // Cannot be a Unix socket.
            "http_redirect": ":80",

            // Add Strict-Transport-Security to headers, the value signifies age.
            // Zero or negative value turns it off.
            "strict_max_age": 604800,
            // Letsencrypt configuration.
            "autocert": {
                    // Location of certificates.
                    //"cache": "",
                    // Contact address for this installation. LetsEncrypt will send
                    // messages to this address in case of problems. Replace with your
                    // own address or remove this line.
                    //"email": "",
                    // Domains served. Replace with your own domain name.
                    //"domains": ["X.X.X.X"]
            },

            // If "autocert" config is not defined, read static certificates from
            // these locations. Ignored if "autocert" is defined.
            "cert_file": "/root/ssl/cert.crt",
            "key_file": "/root/ssl/cert.key"
    },

Server-side log

I2024/04/14 15:44:00 Large media handling enabled fs
I2024/04/14 15:44:00 Redirecting connections from HTTP at [:80] to HTTPS at [:6060]
I2024/04/14 15:44:00 Listening for client HTTPS connections on [:6060]
2024/04/14 15:44:13 http: TLS handshake error from X.X.X.X:3916: acme/autocert: missing server name

@man-k28 man-k28 added the bug label Apr 14, 2024
@or-else or-else added question and removed bug labels Apr 14, 2024
@or-else
Copy link
Contributor

or-else commented Apr 14, 2024

Please use forum for questions.

@or-else or-else closed this as not planned Won't fix, can't repro, duplicate, stale Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants