Site works perfect on http but not https

I tested, it loads fine at my end over HTTPS with the response from the content value of “TREST”.

Is that as it should be for now?

What SSL options have you got selected under SSL tab/settings page at Cloudflare dashboard for your domain?

  • Full SSL, Flexible SSL, Always Use HTTPS, Automatic HTTPS redirection …

Moreover, have you got an SSL certificate installed at your host/origin which covers your main domain and sub-domain(s)?

Is the host/origin server working on HTTPS port compatible with Cloudflare?

https://support.cloudflare.com/hc/en-us/articles/200169156-Identifying-network-ports-compatible-with-Cloudflare-s-proxy

Is the Cloudflare allowed to connect to your host/origin?

https://support.cloudflare.com/hc/en-us/articles/201897700-Allowing-Cloudflare-IP-addresses