I think it should be perfectly valid to install an SSL cert in an LXD container, but the command:
certbot certonly is failing with:
root@broadcast:~/RTCMultiConnection# certbot certonly --standalone
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Please enter in your domain name(s) (comma and/or space separated) (Enter ‘c’
to cancel): bcast.streamingworld.us
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for bcast.streamingworld.us
Waiting for verification…
Challenge failed for domain bcast.streamingworld.us
http-01 challenge for bcast.streamingworld.us
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: bcast.streamingworld.us
Type: unauthorized
Detail: Invalid response from
http://bcast.streamingworld.us/.well-known/acme-challenge/7WGBX04IKki9RIzUNAPx_patC2KDMYhsJmJ_kN_Q26s
[23.239.31.177]: 503
I have port 80 forwarding on my host to the container port 80.
Is this valid? If not, how do I get an SSL cert in the container?
PS: Becasue I am using multiple containers, I have HAproxy in front of them, the bcast is in the haproxy config and routes to the bcast container.
Thanks,
Ray