I am trying to get the image through the https url and I am having some problems. I am creating a keystore using the Java keytool command. If I specify a common name (CN) equal to my host name, for example CN = JONMORRA, and then try to query through my host name, for example https: // JONMORRA: 8443 / , then it works fine. However, if I specify a common name as my IP address, for example CN = 192.168.56.1, and try to execute a request through my IP address, for example https://192.168.56.1:8443/ , then I get an error message
Invalid HTTPS hostname: must be <192.168.56.1>
Indicates that my hostname is incorrect, although this is what I specified in the keystore.
I would like to use ip addresses instead of host names, so I can query between Linux and Windows windows without worrying about host names.
Why is CN not accepting IP addresses and how to fix it?
thanks
java ssl keystore keytool
Jon
source share