If you have a webserver that’s already using port 80 and don’t want to stop it while Certbot runs, run this command and follow the instructions in the terminal.
certbot --nginx works without stopping your webserver or interrupting traffic.
Of course, you can use --webroot if you want, but we don’t know what the webroot of your domain is. You need to look in your nginx virtual host configuration to find that out (the root directive).
Man, like that? sudo certbot --nginx
The certbot will ask for a webroot, I put there
root /var/www/html
And afterwards I just
certbot renew --dry-run
???
Or you have just one command for me? Thanks. I’m afraid to run out again so that’s why I ask…
You want Certbot to issue the certificate AND configure nginx to use it, or
You just want Certbot to issue the certificate, and you’ll do the rest (e.g. you’ll use https://ssl-config.mozilla.org/ to configure nginx yourself).
What command you run will largely be informed about which way you want to go. Keep in mind the TLS-SNI issue you linked earlier may affect your ability to choose (1), but I’m not sure.