如何在Windows中导入Idea的Maven使用TLS证书?

如何在Windows中导入Idea的Maven使用TLS证书?

问题描述:

所以我有点困惑,因为像JVM的3个版本目前已安装。看起来Idea15附带了一个它使用的,有安装的自动更新JRE,然后是开发JDK。如何在Windows中导入Idea的Maven使用TLS证书?

我的Nexus服务器,它使用未签名的证书。在linux上,我刚刚以root身份进行导入,并且只有一个jvm。不过,我需要能够在Windows上安装此证书。这或多或少是我从linux上翻译的命令。

PS C:\Users\xeno\IdeaProjects\rpf> & 'C:\Program Files\Java\jdk1.8.0_45\bin\keytool.exe' -importcert -keystore ..\jre\lib\security\cacerts -storepass changeit -noprompt -file C:\Users\xeno\IdeaProjects\r pf\cert.pem Certificate was added to keystore keytool error: java.io.FileNotFoundException: ..\jre\lib\security\cacerts (The system cannot find the path specified)

右键单击cmd在菜单和运行方式做管理员,然后使用密钥工具上修改证书在JDK版本,JVM的其他版本的没有一个。