java.io.IOException: Hostname was not verified

后端 未结 10 626
逝去的感伤
逝去的感伤 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:15

    From Amazon documentation: Bucket Restrictions

    "When using virtual hosted–style buckets with SSL, the SSL wild card certificate only matches buckets that do not contain periods. To work around this, use HTTP or write your own certificate verification logic."

    The easiest way seems to create a unique bucket name without periods:

    Instead of "bucketname.mycompany.com", something like "bucketnamemycompany" or any other DNS-compliant bucket name.

提交回复
热议问题