java.io.IOException: Hostname was not verified

后端 未结 10 615
逝去的感伤
逝去的感伤 2020-11-28 06:27

I am trying to connect to a URL from a my Android app in Andorid Version 4.1.1, and I get the error indicated in the Title of my question, but when I tried to connect the sa

10条回答
  •  温柔的废话
    2020-11-28 07:20

    This might happen because the CN (Common Name) you have declared on your SSL does not mach the actual URL you are sending your HTTP request too.

    If so, create a new SSL and enter the currect CN. That should fix the problem.

提交回复
热议问题