I tried create a new certificates for my web app (use Laravel) with Let's encrypt but always getting error.
.well-known folder was successful created automatically when i run the command, but not with acme-challenge. I tried it four days ago.
My domain is:
http://jajancustom.com/
I ran this command:
sudo letsencrypt certonly -a webroot --webroot-path=/var/www/html/jajancustom.com -d jajancustom.com -d www.jajancustom.com
It produced this output:
Failed authorization procedure. jajancustom.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://jajancustom.com/.well-known/acme-challenge/0BXIIlE7Ay552RBZ_fvu5perhomsLISrfk5fAB6mPWU: "\r\n404 Not Found\r\n<body bgcolor="white">\r\n
404 Not Found
\r\n
", www.jajancustom.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.jajancustom.com/.well-known/acme-challenge/jijc5kYMH91E4vxbK3ss5gLDcfGC-axqDCNMWdCZdjI: "\r\n404 Not Found\r\n<body bgcolor="white">\r\n404 Not Found
\r\n
"IMPORTANT NOTES:
The following errors were reported by the server:
Domain: jajancustom.com
Type: unauthorized
Detail: Invalid response from http://jajancustom.com/.well-known
/acme-challenge/0BXIIlE7Ay552RBZ_fvu5perhomsLISrfk5fAB6mPWU:
"\r\n404 Not Found\r\n<body
bgcolor="white">\r\n404 Not
\r\n
Found
"Domain: www.jajancustom.com
Type: unauthorized
Detail: Invalid response from http://www.jajancustom.com/.well-
known/acme-challenge/jijc5kYMH91E4vxbK3ss5gLDcfGC-axqDCNMWdCZdjI:
"\r\n404 Not Found\r\n<body
bgcolor="white">\r\n404 Not
\r\n
Found
"To fix these errors, please make sure that your domain name was
entered correctly and the DNS A record(s) for that domain
contain(s) the right IP address.My web server is (include version):
nginx version: nginx/1.10.3 (Ubuntu)The operating system my web server runs on is (include version):
Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-138-generic x86_64)
My hosting provider, if applicable, is:
DigitalOcean (droplet)
I can login to a root shell on my machine (yes or no, or I don't know):
yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
no