简体   繁体   English

IntelliJ IDEA证书

[英]intelliJ idea java certificate

I installed SSL certificate for Jira to Java via keytool.我通过 keytool 为 Jira 安装了 SSL 证书到 Java。 Actually i am using playframework 2 for development and if I use play terminal to compile and run project, everything is fine.实际上我正在使用 playframework 2 进行开发,如果我使用 play 终端来编译和运行项目,一切都很好。 The problem appears when I want to use debugger from IntelliJ idea.当我想使用 IntelliJ idea 中的调试器时会出现问题。 Project in IDE has set same java as SDK in project setting, but it has not accept the installed certificate. IDE 中的项目在项目设置中设置了与 SDK 相同的 java,但尚未接受安装的证书。 Can somebody help with this?有人可以帮忙吗?

I 条款添加证书 IntelliJ IDEA -> Preferences -> Tools -> Server Certificates -> Accepted Certificates -> Add (+)

Go to File->Settings>Tools>Server Certificates.转到文件->设置>工具>服务器证书。 In the IDE Settings section select Server Certificates在 IDE 设置部分选择服务器证书

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.如果您担心安全性,还可以选择在它们出现时一次添加 1 个。

In my case I did this because I already had a *.google.com certificate configured as accepted, but I still got the popup.就我而言,我这样做是因为我已经将 *.google.com 证书配置为已接受,但我仍然收到了弹出窗口。 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.我怀疑指纹改变了,如果我删除然后接受错误就会消失,但我决定通过选中复选框让它消失。

For Mac:对于 Mac:
Preferences > Tools > Server Certificates then Accept non-trusted Certificates Automatically首选项 > 工具 > 服务器证书然后自动接受不受信任的证书

请看下面的截图

Go to File -> Settings -> Tools -> Server Certificates , and check the box "Accept non-trusted Certificates Automatically".转到 File -> Settings -> Tools -> Server Certificates ,然后选中“自动接受不受信任的证书”框。 That might solve your problem.那可能会解决您的问题。 Also check your jdk version.还要检查您的jdk版本。 I had to change to 1.8.0_192 on my Intellij.我不得不在 Intellij 上更改为 1.8.0_192。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM