Please fill out the fields below so we can help you better.
I ran this command (domain.com and username were replaced):
/root/certbot-auto certonly --webroot -w /home/username/public_html -d www.domain.com -d domain.com
Here is the whole thing:
/root/.local/share/letsencrypt/lib/python2.6/site-packages/cryptography/init.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of cryptography will drop support for Python 2.6
DeprecationWarning
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for www.mydomain.com
http-01 challenge for mydomain.com
Using the webroot path /home/username/public_html for all unmatched domains.
Waiting for verification…
Cleaning up challenges
Unable to clean up challenge directory /home/username/public_html/.well-known/acme-challenge
Failed authorization procedure. www.mydomain.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.mydomain.com/.well-known/acme-challenge/79El54TRfx5O1hLQBp8w7SYJIx3wTL-I_2ADNXcGM: "
404 Not Found
Not Found
<p", mydomain.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://mydomain.com/.well-known/acme-challenge/oNsANFJAoqlPt3BEDorT_ft9OZYf7jlXU: "
404 Not 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.