0

I'm new to this domain, so I'm a little perplexed by the alternatives and differentiating between them.

I have a docker image. When the image is run, a shell script (startup.sh) is run. Variables can be passed in at docker run time. I'd like for each time this image is run as a container, a new https certificate be awarded to that running container. There seem to be multiple ways of doing this, and I'm not sure which is best or simplest. I'd like to know which is best before traveling down any of these roads.

I'm not sure how any of these really relate to one another. Why would any of the others exist if certbot were enough? I think it's safe to assume that certbot (which was previous called the letsencrypt client I think) predates the rest.

I'd love some guidance as to how to figure out which of these strategies makes most sense -- I just don't know anyone who I could ask.

Thanks!

Alex Lenail
  • 12,992
  • 10
  • 47
  • 79

1 Answers1

0

I suppose this question was too esoteric for people here -- and to be fair, not quite exactly what this forum was for. This is how I chose to solve my problem:

To recap: the problem is that I'm running an ansible-playbook from a dockerfile which needs to establish a letsencrypt certificate each time the docker image built by the dockerfile is run. Instead of having a playbook call a script call a playbook, I chose to have a playbook call a script call a script -- specifically the letsencrypt.sh script. I was considering using certbot, but although seemingly robust, it's quite bulky, and some people don't like it as much.

Alex Lenail
  • 12,992
  • 10
  • 47
  • 79