I am having a problem with understanding/setting up wildcard SSL certificate. The scenario is this:
example.com(HTTP) domain is hosted by third party company and as it does not provide specific features I have set up separate box a.example.com(HTTPS). This box has SSL certificate (for a.example.com) and is working fine. Now, there is a need to have b.example.com(HTTPS), c.example.com(HTTPS) etc. all working as SSL. They all will be sitting on the same box (a.example.com).
As I don't have any access and control to example.com server I have generated wildcard SSL request for *.example.com from a.example.com server. I have received certificate but I'm unable to apply it to b.example.com because "RSA server certificate CommonName does NOT match server name" which in a way makes sense because server name is set to a.example.com. Now, I can't change server name to example.com because this resides beyond my control and I'm not sure if/how to resolve my issue.
Is it possible to have such a scenario where certificate was requested from a.example.com as wildcard *.example com and then applied to a.example.com to be able to handle b.example.com, c.example.com? I am using Apache on Linux and VirtualHost for *.example.com subdomains.