title: SSL Certificate: How to deal with Common Name and Subject Alternative Name?
body: <p>I have read answers to similar questions, but this one seems a little different. The requirement of certificate here is to accommodate different types of access to server: using IP address directly and using domain name. </p>
  
  <p>In such case, should I put domain name in "CN" and IP address in "SAN", will that work?</p>
  
  <p>Also, how will this work under DHCP, assuming domain name remains unchanged.</p>
  
  <p>Thanks for your clarification.</p>