Hello, I have a problem that I’ve search on the boards but cannot seem to find.
I’ll start from the beginning and give as much information as possible.
I’m running an in-house server with Ubuntu 18.04 & nginx. I have a domain ssh2.uncool.club (which I do not own, but have its A name pointing to my box)
After installing certbot and running the command sudo certbot --nginx it popped out a port 80 error, I then installed apache and changed the port of nginx to 8080 so apache can use port 80 by default as root.
Now, when I run the command, I receive the following:
Performing the following challenges: http-01 challenge for ssh2.uncool.club Using default addresses 80 and [::]:80 ipv6only=on for authentication. Waiting for verification... Cleaning up challenges Failed authorization procedure. ssh2.uncool.club (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://ssh2.uncool.club/.well-known/acme-challenge/J_3_pEuCxoZh5OxYvvG816TjBS64tQXiPmvnWGhAw1E: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p" IMPORTANT NOTES: - The following errors were reported by the server: Domain: ssh2.uncool.club Type: unauthorized Detail: Invalid response from http://ssh2.uncool.club/.well-known/acme-challenge/J_3_pEuCxoZh5OxYvvG816TjBS64tQXiPmvnWGhAw1E : "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<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.
I’ve tried running this as root and receive the same error.
Now, this is all I’m trying to do: I want nginx setup (which I have, and it runs fine), but I need https for my stream not http, and for the life of me I cannot get it up and running with certbot. Believe me when I tell you I’ve pounded away at this, as from the very beginning it’s been error after error - and it’s a miracle I’ve gotten this far. Nginx runs fine when its conf ports ( /etc/nginx/sites-enabled/) is at 80, but not when I change it to 8080 or stop it so I can attempt to get the encryption to work. This is besides the port, however, I know even if I get certbot running as needed, I’ll need the extended ssl info for the nginx.conf. I need help, I don’t know what I’m missing.