Cannot access secure site


I have a site on a shared hosting.

I fact I have 2, one for trial and one for production

These 2 subdomains are the same except some slight differences in mail configuration.

I try to make them secure. Thus I created a self signed certicate and associated it with both sites.

The https access is possible on the site but fails on the site. In the second case I get an error page telling me the page is inaccessible.

I cannot make out the reason why the second site doesn’t work with secure access.

Thank you for help

You need wildcard certificate in this case.

Thank you. It works with wildcard certificate.