You can not have wordpress URL setting to use https as the server itself still can't properly use it. Wordpress always tries to redirect to the configured domain, meaning that when cloudflare connects the server it will attempt the https version that as you noticed does not work.
I modified the...