Hello, I currently am trying to phase out all of my standalone VMs and move to docker containers.
I have haproxy for all HTTP/HTTPS connections. On my haproxy VM, I’ve setup this: https://blog.brixit.nl/automating-letsencrypt-and-haproxy
Essentially that makes the letsencrypt service run on port 9999, and haproxy routes the inbound traffic destined for that port to the letsencrypt service.
I found the official docker image for letsencrypt here: http://letsencrypt.readthedocs.org/en/latest/using.html#running-with-docker
When I run that, I get the error saying
Failed authorization procedure. docker.adamsbrownit.com (tls-sni-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Correct zName not found for TLS SNI challenge. Found 'sub0.domain.com', 'sub1.domain.com', 'sub2.domain.com'
Essentially that’s my other certificate, and those run on another server entirely. How can I use the official docker container to run letsencrypt-auto with the certonly flag to generate a custom certificate? Is this possible?
I attempted to build my own container to run that script that my standalone haproxy server is running and make them talk to each other, but that did not work in the slightest. It appeared that the letsencrypt-haproxy script didn’t even run.
Has anybody else had any luck with this?