ERR_TOO_MANY_REDIRECTS after running certbot

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:
wildmadagascar.org

I ran this command:
sudo certbot certonly --apache

It produced this output:
You have an existing certificate that contains a portion of the domains you

requested (ref: /etc/letsencrypt/renewal/www.wildmadagascar.org.conf)

It contains these names: www.wildmadagascar.org

You requested these names for the new certificate: wildmadagascar.org,

www.wildmadagascar.org.

Do you want to expand and replace this existing certificate with the new

certificate?


(E)xpand/(C)ancel: E

Renewing an existing certificate for wildmadagascar.org and www.wildmadagascar.org

Successfully received certificate.

Certificate is saved at: /etc/letsencrypt/live/www.wildmadagascar.org/fullchain.pem

Key is saved at: /etc/letsencrypt/live/www.wildmadagascar.org/privkey.pem

This certificate expires on 2023-09-03.

These files will be updated when the certificate renews.

Certbot has set up a scheduled task to automatically renew this certificate in the background.

My web server is (include version):
GNU/Linux 5.11.0-1022-aws x86_64

The operating system my web server runs on is (include version):
Ubuntu 20.04.3

My hosting provider, if applicable, is:

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.6.0

This is caused by Cloudflare's CDN connecting to your origin server insecurely. Go to Cloudflare → SSL/TLS → Overview and set your Encryption Mode to "Full" or "Full/Strict":

5 Likes

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