How to Renew AutoSSL Certificates being redirected by Cloudflare's HTTPS Redirection

  • November 14, 2022
  • 0 Comments

There is a common issue of renewing AutoSSL Certificates while using Cloudflare for the domain.

"Local HTTP DCV error (domain.com): The content "<html> <head><title>301 
Moved Permanently</title></head> <body> <center><h1>301 Moved Permanently
</h1></center> <hr><center> …" of the DCV (Domain Control Validation) file,
as accessed at
"https://domain.com/.well-known/pki-validation/69B2BC6319C8DE110EC2596BFCA07878.txt"
and redirected from
"http://domain.com/.well-known/pki-validation/69B2BC6319C8DE110EC2596BFCA07878.txt",
did not match the expected value."

Procedure


To resolve this error, you would need to disable "Always Use HTTPS" in Cloudflare. This option is in the Edge Certificates tab of the Cloudflare SSL/TLS tab. Once disabled, you can then renew your certificate. After you have replaced the SSL certificate, you may re-enable the option if you wish.

Additionally, you may need to disable the "Automatic HTTPS Rewrites" on this same page.

You can find more on Cloudflare's HTTPS Redirection here:
https://support.cloudflare.com/hc/en-us/articles/204144518#h_a61bfdef-08dd-40f8-8888-7edd8e40d156

 

How helpful was this article to you?

Posting has been disabled.