Closed cg31 closed 3 weeks ago
Isn't that what you're suggesting?
I tried it with certificate, but it doesn't work, and headscale report error "headscale/cli/utils.go:124 > Could not connect: context deadline exceeded"
When I look inside headscale, it still uses ListenAndServe, ListenAndServeTLS can use paths to cert and key directly.
Isn't that what you're suggesting?
Turns out... it works after trying again, only I need to use 443 as serving port.
But "headscale nodes list" seems not working anymore, but it doesn't matter.
Use case
We can use self-signed TLS service without outside service like Let's Encrypt, for simple network.
Description
Headscale support Let's Encrypt, but it still needs domain name, and it also makes Headscale depending on other service.
Nowadays we can use mkcert or openssl to generate self-signed certificate, they can be done with IP only.
Contribution
How can it be implemented?