Android的工作室:服务器的证书不被信任 [英] Android Studio: Server's certificate is not trusted
问题描述
它是安全的忽略此警告?它显示了,当我创建Android Studio中一个新的项目:
Is it safe to ignore this warning? It shows up when I create a new project in Android Studio:
Server's certificate is not trusted
Certificate details
Issued To
CN (Common Name) *.google.com
O (Organization) Google Inc
L (Locality) Mountain View
C (Country) US
ST (State or Province) California
Issued By
CN (Common Name) Google Internet Authority G2
O (Organization) Google Inc
C (Country) US
Validity Period
Valid from: 9/24/14
Valid until: 12/23/14
...
日期看起来没事,我检查我的电脑的日期设置以确保万无一失。否则为什么它是不被信任?
The date looks alright and I checked my computer's date settings to be sure. Why else would it be "not trusted"?
推荐答案
Android的工作室有服务器证书的配置(这适用于其他的IntelliJ平台,如PyCharm以及)
Android Studio has a configuration for Server Certificates (This works for other IntelliJ platforms like PyCharm as well)
转到文件 - >设置。在 IDE设置部分选择服务器证书
我自己,我只是选择了接受自动复选框,点击应用,从来没有来对付它。如果你担心安全,也有将它们添加1日,因为他们来了一个时间的选项。
Myself I just selected the Accept Automatically check box, hit Apply and never had to deal with it. If you are worried about security, there is also the option to add them 1 at a time as they come up.
在我来说,我这样做是因为我已经有了一个* .google.com证书配置为接受,但我还是得到了弹出窗口。我怀疑指纹改变,如果我会删除,然后接受了错误会消失,但我决定只让它通过选择复选框走了。
In my case I did this because I already had a *.google.com certificate configured as accepted, but I still got the popup. I suspect that the fingerprint changed and if I would have deleted and then accepted the error would have gone away, but I decided to just make it go away by selecting the check box.
这篇关于Android的工作室:服务器的证书不被信任的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!