title: SSL certificate for web app with both a root domain and a subdomain
body: <p>I'm setting up an SSL certificate to enable HTTPS on my site. The main webapp is served on the root domain: domain.com. However the CDN is served on cdn.domain.com on Amazon CloudFront.</p>
  
  <p>As far as I know, a single SSL certificate can only cover the root domain (domain.com) OR the subdomains (*.domain.com). Will I have to get 2 different SSL certificates to cover both the root domain and the subdomains?</p>
  
  <p>Will 2 different SSL certificates somehow screw up CORS when retrieving assets from the CDN, or is there something else I should be aware of in such a setup?</p>
  
  <p>Thanks.</p>