title: When creating a SSL certificate should the common name be the domain name or IP address?
body: <p>I run this command to create a certificate:</p>
  <pre><code>sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt
  </code></pre>
  <p>It asks me to fill information as shown below:</p>
  <ul>
  <li>Country Name (2 letter code) [AU]:US</li>
  <li>State or Province Name (full
  name) [Some-State]:New York</li>
  <li>Locality Name (eg, city) []:New York City</li>
  <li>Organization Name (eg, company) [Internet Widgits Pty Ltd]:Test, Inc.</li>
  <li>Organizational Unit Name (eg, section) []:Ministry of Water Slides</li>
  <li>Common Name (e.g. server FQDN or YOUR name) []: <strong>should this be domain name or IP address?</strong></li>
  <li>Email Address []:admin@your_domain.com</li>
  </ul>