Help Needed with Certbot Authentication Issues for Domains

Hello,

I'm having trouble with Certbot while trying to obtain an SSL certificate for my domains. Here’s the error message I'm encountering:

////////////////////////////////// error border
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:

Domain: example.pro
Type: unauthorized
Detail: 2606:4700:3030::6815:acf: Invalid response from http://example.pro/.well-known/acme-challenge/m_4SlcCY3wtmYC0xk4sNBxHUXjDlK3REFgaJej-Yx4I: 522

Domain: www.example.pro
Type: unauthorized
Detail: 2606:4700:3032::ac43:befe: Invalid response from http://www.example.pro/.well-known/acme-challenge/8eIUlXAqWe2JJTnOYukDMtOqzas7di46P2BMECR2hiI: 522

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.

////////////////////////////////// error border

Additional Information:

  • My WordPress site is enabled at https://example.pro.
  • I am using Apache as my web server.
  • I’ve checked that the domains point to my server, and it is accessible from the internet.

Actions Taken:

  • Ensured the domains are correctly pointing to my server.
  • Verified that Apache is configured to serve files from the .well-known/acme-challenge directory.

Questions:

  1. What steps can I take to resolve this issue?
  2. How can I ensure that Apache serves the challenge files correctly?
  3. Are there any specific configurations or logs I should review?

Any guidance or suggestions would be greatly appreciated!

Thank you.

I also need help hosting a Next.js application on the same droplet where my WordPress site is located. I've been struggling with this for the past two days and could use some guidance.

Issues I'm Facing:

  • Configuration of Apache for serving Next.js
  • Setting up SSL certificates correctly for both WordPress and Next.js

If anyone has experience with this setup or can offer advice on resolving these issues, your help would be greatly appreciated!

Thank you!

1 Like

522 sounds like a cloudflare error.

Problems with cloudflare most often arise when you tell cloudflare to redirect http to https.

You should have your server do the redirect, otherwise it will never get any request on port 80.

(NB, I am not sure this is the problem here)

1 Like

Before attaching the IP to the Cloudflare domain, I installed a WordPress droplet, which requires a domain or subdomain. I entered example.pro, but I think that is problem... it will didn't work because there wasn't an appropriate IP address.

Yes, you can only get a certificate for a domain you control. (Or a domain pointing to your webserver)

3 Likes

Is that your real domain name?

I'm 99.99 % sure it isn't, but please verify.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.