Install Teleport behind HAProxy #8063
-
Hi all, I have installed Teleport on an Ubuntu Server 20.04 LTS. Following the docs, I have gotten as far as running the I run HAProxy on my network that does all my SSL terminations using Let's Encrypt. Is it possible to generate a self-signed cert with Teleport, or even use it without a cert? And then proxy through to it using HAProxy and the Let's Encrypt cert? This is how I run all my other internal/external services. Thanks, D |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
If you start Teleport without providing a certificate (either via You can use it without a cert if you really want by using |
Beta Was this translation helpful? Give feedback.
-
I can't seem to get the web UI up on port 443. Teleport is running. I have opened the necessary ports. Teleport doesn't seem to be listening on any IPv4 ports. Any ideas? |
Beta Was this translation helpful? Give feedback.
-
I have only been able to get this working without using a cert. Unless I did something wrong. I think the documentation could be a bit better. It doesn't seem to cover the self-cert/no-cert options... |
Beta Was this translation helpful? Give feedback.
-
Also found that without a cert the service listens on port 3080, which isn't mentioned in the docs. Unless I missed that too. |
Beta Was this translation helpful? Give feedback.
If you start Teleport without providing a certificate (either via
https_keypairs
in the config file, or usingacme
), its default behaviour is to generate a self-signed certificate and use that when serving the proxy's web UI. As long as haproxy doesn't attempt to validate the self-signed certificate presented by the Teleport backend, it should work fine.You can use it without a cert if you really want by using
teleport start --insecure-no-tls
, but I don't recommend this.