If you are having trouble getting a LetsEncrypt certificate, maybe due to propagation problems, this program can be useful:
https://github.com/go-acme/lego