Cloudflare proxies your domain so it’s normal that there’s a CF certificate showing up. Check the server configuration
A 521 error happens when Cloudflare is unable to make a TCP connection to your origin server. Review the suggestions in this Community Tip for Quick Fix Ideas.