I am having issues with getting a certificate on my dedicated server.
The command I am running is: sudo certbot --apache -d example.com (replacing that with my domain)
The error is that the connection is timing out. “The server could not connect to the client to verify the domain”
However, UFW is disabled (Ubuntu 16.04), and ports 80 and 443 are being forwarded to the server. I can actually access my server from the internet via its hostname (which is also the domain I am trying to get the certificate for). I have absolutely zero issues connecting to my server and browsing the content on it.
Additionally, I have added the server’s hostname to the /etc/hosts file to ensure it resolves to the external IP, because it was also throwing this error with the local loop.
I’ve also made sure that there is an apache site with the ServerName that matches the certificate I am trying to issue.
I have no clue what to do now. I can ping my server directly and via its hostname on ports 80 and 443 without issue, but it still says it cannot connect.