主机名与证书主题不匹配

编程入门 行业动态 更新时间:2024-10-19 20:42:42
本文介绍了主机名与证书主题不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当我尝试构建我的android项目时收到gradle错误.我正在使用cwac-cam库.

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

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

Error:Host name 'repomonsware.s3.amazonaws' does not match the certificate subject provided by the peer (CN=.s3.amazonaws, O=Amazon Inc., L=Seattle, ST=Washington, C=US)*

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

When I tried to open the URL from build.gradle using chrome

行家{url" repomonsware.s3.amazonaws }

我收到此消息:

您的连接不是私有的

Your connection is not private

攻击者可能试图从中窃取您的信息 repomonsware.s3.amazonaws(例如密码, 讯息或信用卡). NET :: ERR_CERT_COMMON_NAME_INVALID

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

更新

我尝试在另一台设备上打开该URL,并且没有问题.

I tried to open the URL on another device and it opened with no problems.

推荐答案

当我尝试构建我的android项目时收到gradle错误.我正在使用cwac-cam库.

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

我不知道cwac-cam库.

CWAC存储库位于:

The CWAC repository is at:

repositories { maven { url "s3.amazonaws/repomonsware" } }

与您所拥有的URL稍有不同.

which is a slightly different URL than what you have.

更多推荐

主机名与证书主题不匹配

本文发布于:2023-11-23 20:44:22,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1622812.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不匹配   主机名   证书   主题

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!