Hello,
When I run
sudo certbot --nginx --agree-tos --redirect --hsts --email ultrahartford@gmail.com -d mail.riversideprison.com
I got
Plugins selected: Authenticator nginx, Installer nginx
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for mail.riversideprison.com
nginx: [error] invalid PID number "" in "/run/nginx.pid"
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. mail.riversideprison.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://mail.riversideprison.com/.well-known/a cme-challenge/_HLB8ICy4YeDb04HJ9xnwkLiiLHzM6oBOSN2iYHnyXo [2606:4700:30::681b:b0a3]: "<!DOCTYPE HTML>\n<html lang=\"en-US\">\n<head>\n <meta charset=\"UTF-8\" />\n <meta http-equiv=\"Content-Type\" content=\"text/html; ch ar"
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: mail.riversideprison.com
Type: unauthorized
Detail: Invalid response from
http://mail.riversideprison.com/.well-known/acme-challenge/_HLB8ICy4YeDb04HJ9xnwkLiiLHzM6oBOSN2iYHnyXo
[2606:4700:30::681b:b0a3]: "<!DOCTYPE HTML>\n<html
lang=\"en-US\">\n<head>\n <meta charset=\"UTF-8\" />\n <meta
http-equiv=\"Content-Type\" content=\"text/html; char"
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
I am trying to get a certificate for my mail server, I am not the best at these types of things and linux in general, but if anyone could help me that would be well appreciated.
Domain: mail.riversideprison.com
VPS: OVH
VPS OS & VERSION: Ubuntu 18.01.01 LTS