cPanel & WHM: Warnings while checking SSL certificates

By checking the SSL certificate of the hostname, I found it valid.
So there is a valid SSL certificate on the server, but DNS may have been changed recently to be proxied through Cloudflare, and that makes AutoSSL validation checks fail DCV;
How to solve this problem?