android - 主机名与证书主题不匹配

标签 android ssl amazon-s3 android-gradle-plugin

当我尝试构建我的 android 项目时出现此 gradle 错误。我正在使用 cwac-cam 库。

错误:主机名“repo.commonsware.com.s3.amazonaws.com”与对等方提供的证书主题不匹配(CN=.s3.amazonaws.com,O=Amazon .com Inc.,L=西雅图,ST=华盛顿,C=US)*

当我尝试使用 chrome 从 build.gradle 打开 URL 时

maven { url "https://repo.commonsware.com.s3.amazonaws.com" }

我收到这条消息:

Your connection is not private

Attackers might be trying to steal your information from repo.commonsware.com.s3.amazonaws.com (for example, passwords, messages, or credit cards). NET::ERR_CERT_COMMON_NAME_INVALID

更新

我尝试在另一台设备上打开该 URL,但没有出现任何问题。

最佳答案

I get this gradle error when I try to build my android project.I am using cwac-cam library.

据我所知,没有cwac-cam库。

CWAC 存储库位于:

repositories {
    maven {
        url "https://s3.amazonaws.com/repo.commonsware.com"
    }
}

这与您的 URL 略有不同。

关于android - 主机名与证书主题不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39058798/

相关文章:

android - 在未检测到 x86 系统镜像的 Windows 上创建 Google TV AVD

android - 如何查看付款已通过沙盒中的卡发送

php - 一旦网站 SSL 完成,我就无法在 php 中获取 $_POST 参数

php - Satis http basic auth - pass credentials

amazon-s3 - 使用 spark 解释器从 Zeppelin 连接 S3

android - 在 Android kitkat (CM 11.0) 上将 SElinux 置于宽容模式的安全影响

ssl - 为 Elastic Beanstalk 配置 SSL

php - 如何将 PHP 图片资源放入 Amazon Web Services?

amazon-s3 - s3 永无止境的待处理音频请求

android - 如何检测私有(private)号码