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. |, so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

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/

It contains these names:

You requested these names for the new certificate:,

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


(E)xpand/(C)ancel: E

Renewing an existing certificate for and

Successfully received certificate.

Certificate is saved at: /etc/letsencrypt/live/

Key is saved at: /etc/letsencrypt/live/

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):

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):

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":


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