title: Java's keytool command with IP addresses
body: <p>I'm trying to get an image via an https URL, and am having some problems.  I generate a keystore with Java's keytool command.  If I specify the common name (CN) equal to my hostname, such as CN=JONMORRA, and then try to query via my hostname, such as <a href="https://JONMORRA:8443/" rel="noreferrer">https://JONMORRA:8443/</a> then it works fine.  However, if I specify the common name as my ip address, such that CN=192.168.56.1, and try to query via my ip address, such as <a href="https://192.168.56.1:8443/" rel="noreferrer">https://192.168.56.1:8443/</a> then I get an error</p>
  
  <p>HTTPS hostname wrong:  should be &lt;192.168.56.1></p>
  
  <p>Which is stating that my hostname is wrong, even though that's what I specified in the keystore.</p>
  
  <p>I would like to use ip addresses instead of hostnames so I can query between Linux and Windows boxes without worrying about hostnames.</p>
  
  <p>Why is the CN not accepting ip addresses, and how can I fix it?</p>
  
  <p>Thanks</p>