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 operating system is (include version):
MacOS 10.12.3
My web server is (include version):
CentOS version 2017.03
My hosting provider, if applicable, is:
Amazon AWS
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
Additional:
These are the steps I usually take to update my certificate:
However last time I did this (in Feb) I upgraded pip from 6.1.1 to 8.1.2.
Today while doing the same above steps I got some errors, e.g. when I ran: pip install pip --upgrade I got the error “DistributionNotFound”.
I ran “easy_install pip” to see if it would fix the issue and now when I run pip install pip --upgrade I get the notice:
Requirement already up-to-date: pip in /usr/lib/python2.7/dist-packages.
Not sure if this is related so thought I would mention it.
This error is probably not related to the dependencies/pip problems, because it’s a very familiar kind of error.
When using --webroot, you need to specify somewhere where Certbot can create files which are then visible to the public on your web site. However, when the certificate authority checked, it did not actually find these files at the expected location, but rather an error message from your web server.
Thanks for you’re reply, I really do appreciate the help!
The server has it’s virtualhost setup with this document root: /var/www/html/pro01.co.uk
So to answer your first question, no I cant reach the test file by adding it to “/var/www/html” but I can if I add it to “/var/www/html/pro01.co.uk”.
The test2.txt file is a bit trickier, as it’s located at “/var/www/html/.well-known” not within the live document root which I guess would be /var/www/html/pro01.co.uk/.well-known, so although I can add files I’m not sure how I would see them from the website.
I’ve enclosed a picture of my directory structure to help clear things up.
I guess my question would be is the .well-known folder simply being created in the wrong place and if so how was it working up till now?
My vhost.conf is enclosed just in case it helps shed any more light on the issue:
In this case, you should specify --webroot-path /var/www/html/pro01.co.uk instead of --webroot-path /var/www/html. It's about 85% likely that this will immediately solve your problem.
You star, it was that simple. Certificates been generated.
Any idea how I've managed to get the certificate without the right directory being specified up till now? I've literally been using "var/www/html" for about a year!