Ok, I'm really confused, and I have a few problem renewing certificates that doesn't seem to have a cause.
I'm using MacOS Server to run a website (which I'm fairly certain uses Apache), and a few months ago, I got a certificate. I don't remember the exact steps I took, but I got it to work. Certbot couldn't run on my server machine, so I generated the certificate on my normal computer, then just transferred it over. Everything worked fine.
Now, I'm receiving messages to renew it, so I used the "sudo certbot renew" command on my new machine, with the intention of copying the cert back over, just like before. However, this spit out a bunch of errors (shown below):
IMPORTANT NOTES: - The following errors were reported by the server: Domain: cvprogramming.tk Type: unauthorized Detail: Invalid response from http://cvprogramming.tk/.well-known/acme-challenge/AmUAqkVkBLksnur35j7n-FMjmdkErPZmoQe1SNeoZMQ: "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p" 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 next step was to copy over my entire web server to my new machine, re-port forward everything to the new machine, then try again. Still the same error (only with a slightly different file path after "acme-known/".
I also tried generating an entirely new certificate on the new machine, which spat out this error:
Exiting abnormally: Traceback (most recent call last): File "/usr/local/bin/certbot", line 11, in <module> load_entry_point('certbot==0.26.1', 'console_scripts', 'certbot')() File "/usr/local/Cellar/certbot/0.26.1/libexec/lib/python3.7/site-packages/certbot/main.py", line 1364, in main return config.func(config, plugins) File "/usr/local/Cellar/certbot/0.26.1/libexec/lib/python3.7/site-packages/certbot/main.py", line 1246, in certonly domains, certname = _find_domains_or_certname(config, installer) File "/usr/local/Cellar/certbot/0.26.1/libexec/lib/python3.7/site-packages/certbot/main.py", line 421, in _find_domains_or_certname domains = display_ops.choose_names(installer, question) File "/usr/local/Cellar/certbot/0.26.1/libexec/lib/python3.7/site-packages/certbot/display/ops.py", line 120, in choose_names return _choose_names_manually() File "/usr/local/Cellar/certbot/0.26.1/libexec/lib/python3.7/site-packages/certbot/display/ops.py", line 197, in _choose_names_manually cli_flag="--domains", force_interactive=True) File "/usr/local/Cellar/certbot/0.26.1/libexec/lib/python3.7/site-packages/certbot/display/util.py", line 185, in input ans = input_with_timeout(message) File "/usr/local/Cellar/certbot/0.26.1/libexec/lib/python3.7/site-packages/certbot/display/util.py", line 83, in input_with_timeout rlist, _, _ = select.select([sys.stdin], [], [], timeout) KeyboardInterrupt
I also tried reinstalling certbot, which didn't fix the problem.
Any ideas what I'm doing wrong? I've spent hours looking into this, and I'm yet to find anything that helps.
EDIT:
Support form:
My domain is:
cvprogramming.tk
I ran this command:
sudo certbot renew
It produced this output:
IMPORTANT NOTES: - The following errors were reported by the server: Domain: cvprogramming.tk Type: unauthorized Detail: Invalid response from http://cvprogramming.tk/.well-known/acme-challenge/AmUAqkVkBLksnur35j7n-FMjmdkErPZmoQe1SNeoZMQ: "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p" 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): MacOS Server 5.2 (I'm fairly certain uses Apache)
The operating system my web server runs on is (include version):
MacOSX El Capitan V10.11.6