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