I followed the instructions here for the interactve install:
sudo certbot --nginx
I gave my email, etc and at the end I received a Congratulations prompt but with the error that the installation was not completed. The error was related to server_name missing from Nginx configuration. I have now fixed that and nginx -t passes.
My issue now is that I have the .pem files and everything else I need for the installation to finish. What’s not clear from the certbot documentation is what command to run to finalize the install after such an error. I’m afraid that if I run sudo certbot – nginx again, it will barf since I already have certs saved and chain.
Would it be safe to run certbot --nginx again or should it be some variation of it? If so, what?
Making the change to the nginx.conf file as suggested worked. Here’s an example that matches a little more closely what would be necessary to get this to work: