Hope you have already created an SSL certificate in your server for your sub domain. Now, if Cloudflare SSL encryption mode is set to”Full” then it will not work.
You need to create a “Configuration Rule” in Cloudflare for this subdomain and set your SSL/TSL encryption to “Flexible” mode like in the screenshot below: