Hello, I was trying to generate a SSL certificate for my website but it keeps returning the 404 error, I tried few things that I saw on forums but none seems to work, so I am here requesting help.
My domain is: apoc.sytes.net
I ran this command: sudo certbot --apache
It produced this output: Saving debug log to /var/log/letsencrypt/letsencrypt.log
Please enter the domain name(s) you would like on your certificate (comma and/or space separated) (Enter 'c' to cancel): apoc.sytes.net
Requesting a certificate for apoc.sytes.net
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Detail: 184.108.40.206: Invalid response from http://apoc.sytes.net/.well-known/acme-challenge/-fZVBuUi4TQxELdv52OdVQgsdXGPNSo_dWxHzW1zhJg: 404
Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
My web server is (include version): Apache/2.4.56 (Debian)
The operating system my web server runs on is (include version): Debian 11 Bullseye
My hosting provider, if applicable, is: me
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
The version of my client is (e.g. output of
certbot --version or
certbot-auto --version if you're using Certbot): certbot 2.5.0