Encountered on a CPanel system when it tries to renew AutoSSL.

The solution is exclude the files CPanel uses to check AutoSSL from any https redirections you might have in your .htaccess file.

For more information see: CPanel AutoSSL Renewal Problems