I've already seen the following
https://superuser.com/questions/685353/ssl-certificate-for-cname-record
I have a domain, say example1.com for which I have purchased an SSL certificate. I have another domain example2.com. I want to add a CNAME record for example1 on example2 and enforce it to work with SSL (even if I have to purchase another certificate for example2)
Somewhat like:
NAME                |       TYPE        |            VALUE
--------------------+-------------------+-------------------------------
  sub.example2.com          CNAME           https://sub.example1.com
where
sub.example1.com already has SSL
sub.example2.com does not have SSL (yet)
As per what I've learnt, SSL certificates are installed on the web server ( Apache for example ), and not on the DNS level.
How can I setup SSL for the subdomain ???