Hello rohit.singh
The 521 error suggests that Cloudflare is unable to establish an SSL/TLS handshake with your origin server. To fix this:
- Verify that the port 443 is really open using a tool like canyouseeme.org.
- Confirm that your server is running with a valid certificate. You can do this by running the server IP address through an SSL Checker like sslshopper.com/ssl-checker.
- Ensure your firewall is not blocking Cloudflare’s requests. You may need to allowlist Cloudflare’s IP ranges.
- Check if your server is properly configured for HTTPS request. In your case, since you’re using IIS windows, confirm that the HTTPS binding is correctly configured.
If all these are in order and you’re still facing the issue, it would be best to get in touch with your hosting provider for further investigation.
Regards,