Are you sure you are connecting to the right host? Try openssl s_client -connect exemple.ca:443 and check where it connects to and what certificate you get.
It might be that you dont have the full certificate chain. In which case you’d need to import it into your certificate store, for it to be trusted. Whats the domain?
Unless you have an entry in the hosts file (have you checked for that?) that should be fine as that host is properly configured for Cloudflare. Just to rule out any local edge server issues, can you check your certificate chain involves two Comodo certificates plus the one issued for the host?
If that is the case your system trust store is most likely missing the Comodo certificates and hence cant validate your server certificate. You’d either need to add them to the system trust store or configure a custom one for that call.
Thank you so much for this. I was into this issue and tired to tinker around to check if its possible but couldnt get it done. Now that i have seen the way you did it, thanks guys
with
regards