Currently, to remove the warning about untrusted Cloudflare CA Origin certificate and 522 error, you have to switch to your DNS records for your Website and make sure you’re using Full (Strict) option at the SSL/TLS tab of Cloudflare dashboard for your zone.