HTTPS hostname wrong: should be . What causes this?

后端 未结 7 671
故里飘歌
故里飘歌 2020-12-03 10:38

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         


        
7条回答
  •  自闭症患者
    2020-12-03 10:59

    I got this exception - java.io.IOException: HTTPS hostname wrong: should be .

    My solution is I changed my self-signed certificate and make the CN=localhost.

    OR

    Add your certificate domain-name cn= to your host file probably located at c:/windows/system32/drivers/etc/...

提交回复
热议问题