I have a Docker container that does the following things in succession:
- Start an NGINX server with just HTTP on port 80
- Run Certbot’s certonly command to generate certificates
- Restart the NGINX server with new config to also do HTTPS on 443
This is very convenient because if we move servers/even domains, I know that all I have to do is startup and we will be good to go. The unfortunate result though is that when I recreate the container I will go through the certification process over again for the same domain. This works currently, but I am wondering if there are negative consequences to this approach. Does LetsEncrypt put any stipulations or limitations on going through the certification process for the same domain? Are there other concerns to watch out for?