I am getting this \'HTTPS hostname wrong:\' error when trying to connect to a server using https. My url looks something like this
https://sub.domain.com/tam
I got this exception - java.io.IOException: HTTPS hostname wrong: should be .
java.io.IOException: HTTPS hostname wrong: should be
My solution is I changed my self-signed certificate and make the CN=localhost.
CN=localhost
OR
Add your certificate domain-name cn= to your host file probably located at c:/windows/system32/drivers/etc/...
cn=