Cyberpanel+OLS serves Cert identity of the main domain for the identity of the subdomain!

Hello,

I have cyberpanel along with OLS. I create subdomain for my example . com domain as demo. example . com. I apply ssl certificates obtained from cloudflare origin server certificates. It seems ssl enabled for the subdomain on the panel but when I try to connect the server it serves the certificate as CN=example . com which breaks the connection between cloudflare and my server resulting 525 error.

echo | openssl s_client -connect demo . example . com:443 -servername demo . example . com 2>/dev/null | openssl x509 -noout -subject

the result of this command returns the following

subject=CN = example . com

Why does the server returns CN=example . com instead of demo . example . com?

Thnak you in advance.