My domain is:yunshuyuan.cc
I ran this command: ./letsencrypt-auto certonly --webroot -w /web/xia/book/public_html/ --email henryyexm@qq.com -d yunshuyuan.cc -d www.yunshuyuan.cc -d m.yunshuyuan.cc --agree-tos
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for yunshuyuan.cc
http-01 challenge for www.yunshuyuan.cc
http-01 challenge for m.yunshuyuan.cc
Using the webroot path /web/xia/book/public_html for all unmatched domains.
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. m.yunshuyuan.cc (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://m.yunshuyuan.cc/.well-known/acme-challenge/rmvyiGs3im4QusQLkrrPIIZDxrDwyr3ISS_-Gj6nSaU: "<!doctype html>
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: m.yunshuyuan.cc
<meta name="viewport""
Type: unauthorized
Detail: Invalid response from
http://m.yunshuyuan.cc/.well-known/acme-challenge/rmvyiGs3im4QusQLkrrPIIZDxrDwyr3ISS_-Gj6nSaU:
"<!doctype html>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.
My web server is (include version):nginx1.12
The operating system my web server runs on is (include version):Centos 7
I try to create a file test,
yunshuyuan.cc/.well-known/acme-challenge/test
it worked!