root@ip-172-31-17-82:/home/ubuntu# sudo certbot certonly --nginx -d emiratespass.net,www.emiratespass.net
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for emiratespass.net
http-01 challenge for www.emiratespass.net
Using default address 80 for authentication.
Using default address 80 for authentication.
nginx: [error] invalid PID number "" in "/run/nginx.pid"
Cleaning up challenges
nginx: [error] invalid PID number "" in "/run/nginx.pid"
nginx restart failed:
b''
b''
However, it is worth mentioning that the nginx service is stopped from earlier.
I am sorry but I would not know how to do that. I am not that tech savvy and would call myself more of a layman when it comes to server configurations. Sorry again for it, is there a way I can check if certbot is running elsewhere?
oh ok, well I already took care of that, pressed enter and it gave the same errors. so now we have only one terminal with the last output I shared here.
root@ip-172-31-17-82:/home/ubuntu# certbot certonly --nginx -d emiratespass.net --http-01-port 8080 --dry-run
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for emiratespass.net
Waiting for verification...
Cleaning up challenges
Right. Now you can try your original Certbot command, but add the --http-01-port 8080 part to it. Thatâs what makes it compatible with your nginx/varnish installation.