title: How ssl certificates are handled in CNAME mapped domains?
body: <p>I observed a site example.com has a cname mapping with mysite.com. Both example.com and mysite.com have ssl certificates.</p>
  
  <p>Correct if I am wrong?</p>
  
  <p>When a browser tries to connect <a href="https://example.com" rel="nofollow noreferrer">https://example.com</a> it checks DNS and finds it has cname mapping with mysite.com and connect to mysite.com web server directly.</p>
  
  <p>When I observed browser it has ssl certificate for example.com domain. I am  facing problem in understanding this case.</p>
  
  <p>If request did not go to example.com web server how could browser get ssl certificate of example.com
   or my cname mapping understanding is wrong?</p>
  
  <p>or  example.com private and public keys are shared with mysite.com webserver ?</p>