I want to put my lxd-host behind HAProxy and want to configure ACME for my lxd-host. I did these configs which are shared below. And Here is the config for my HAProxy. Both HAProxy and lxd-host is running on the same VM. My sub-domain is pointing to my server. I want to use Letsencrypt for certs.
INFO [2025-04-25T07:31:10Z] http: TLS handshake error from 3.17.154.255:37830: tls: first record does not look like a TLS handshake
DEBUG [2025-04-25T07:31:28Z] Allowing untrusted GET ip="192.168.1.109:49576" url=/1.0
WARNING[2025-04-25T07:31:28Z] Rejecting request from untrusted client ip="192.168.1.109:49576"
DEBUG [2025-04-25T07:31:28Z] Allowing untrusted GET ip="192.168.1.109:49576" url=/1.0
INFO [2025-04-25T07:32:22Z] http: TLS handshake error from 3.17.154.255:34768: tls: client offered only unsupported versions: [303 302 301]
DEBUG [2025-04-25T07:32:22Z] Allowing untrusted GET ip="192.168.1.109:49576" url=/1.0
WARNING[2025-04-25T07:32:22Z] Rejecting request from untrusted client ip="192.168.1.109:49576"
DEBUG [2025-04-25T07:32:22Z] Allowing untrusted GET ip="192.168.1.109:49576" url=/1.0
I’d like to help you, but not sure what is the issue at hand?
I am not sure about this snippet, I think you can remove it.
I’d recommend raising these two to at least a couple of minutes, or your console/terminal sessions will be killed quite soon after establishing the connection.
This site can’t provide a secure connection
lxd.testdotpkdomasdfasdfasfain.com sent an invalid response.
Try running Windows Network Diagnostics.
ERR_SSL_PROTOCOL_ERROR
I want to use HAProxy for lxd-host with lets-encrypt certs. I have a domain and it’s pointing to my server-ip. Now I want to configure ACME for lxd with lets-encrypt so that my certificate can be automatically handle by it.
The first error was related to SSL because I was using an SSL certificate for testdotpkdomasdfasdfasfain.com, which was not a wildcard certificate. I have now created a specific SSL certificate for lxd.testdotpkdomasdfasdfasfain.com and converted it into a PEM format. That resolved the SSL-related error.
However, I am now facing a 403 Forbidden error when I access lxd.testdotpkdomasdfasdfasfain.com in the browser. But when I include the port 8443, it loads LXD perfectly.
Now, I want to solve two issues:
How can I access LXD on port 443 without having to specify 8443?
How can I use the domain’s SSL certificates in my LXD host’s certificate store so that I can access my LXD host securely?