Well, my goDaddy hosting does not allow setting up an SSL certificate.
I would still like to reiterate that it was working like this previously.
The wordpress site is hosted on goDaddy (using their managed Wordpress plan), I created an account on cloudflare and pointed cloudflare’s Nameservers to the domain (which is also on goDaddy). After this I just created the appropriate a, txt, cname and srv record types in the dns section on cloudflare (to make my office 365 work and to make the domain work). This is working fine as the domain name is resolved and it takes me to that page but the resources on that page are not fully loaded and if I look into the browser console. There it is showing me 521 error messages like the following:
(index):68 GET https://www.luxsant.com/wp-content/themes/Divi_3.0.19/Divi_3.0.19/style.css?ver=3.0.19 net::ERR_ABORTED 521