eclipse中的SSL密钥库路径 [英] SSL keystore path in eclipse
问题描述
在我的用户主目录中,有一个 .keystore
文件.每当我执行 keytool -list
时,我都会得到:
In my user home directory there is a .keystore
file. Whenever I do keytool -list
I get:
Keystore type: JKS
Keystore provider: SUN
Your keystore contains 0 entries
但是,从Eclipse运行junit测试时,JVM始终引用此密钥库.如何从Eclipse将此路径更改为另一个密钥存储路径,例如 C:\ Users \ abc123 \ jdk1.8.0_65 \ jre \ lib \ security \ cacerts
.
However while running junit tests from Eclipse, the JVM is always referring to this keystore. How can I change this path to another keystore path, for example, C:\Users\abc123\jdk1.8.0_65\jre\lib\security\cacerts
from Eclipse.
我尝试过
Debug As --> Debug Configuration --> Junit --> VM arguments
-Djavax.net.ssl.trustStore="C:/Users/b91255/jdk1.8.0_65/jre/lib/security/cacerts "
-Djavax.net.ssl.trustStorePassword="changeit"
我收到认证链接错误.我怎样才能要求eclipse使用 C:\ Users \ abc123 \ jdk1.8.0_65 \ jre \ lib \ security \ cacerts
作为SSL密钥库?
I am getting a certification chaining error. How can I ask eclipse to use C:\Users\abc123\jdk1.8.0_65\jre\lib\security\cacerts
as the SSL keystore?
推荐答案
除了@Tushar Patels答案,这就像
in addition to @Tushar Patels answer, this is like
转到eclipse.ini文件并进行
go to eclipse.ini file and edit:
-vmargs
-Djavax.net.ssl.trustStore="C:/Users/b91255/jdk1.8.0_65/jre/lib/security/cacerts "
-Djavax.net.ssl.trustStorePassword="changeit"
这篇关于eclipse中的SSL密钥库路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!