How do I find out what keystore my JVM is using?(如何找出我的 JVM 正在使用的密钥库?)
问题描述
我需要将证书导入到我的 JVM 密钥库中.我正在使用以下内容:
I need to import a certificate into my JVM keystore. I am using the following:
keytool -import -alias daldap -file somecert.cer
所以我可能需要将我的调用更改为:
so I would need to probably change my call into something like:
keytool -import -alias daldap -file somecert.cer -keystore cacerts –storepass changeit
推荐答案
您的密钥库将在您的 JAVA_HOME--->JRE -->lib--->安全-->证书
.您需要检查您的 JAVA_HOME 的配置位置,可能是这些地方之一,
Your keystore will be in your JAVA_HOME---> JRE -->lib---> security--> cacerts
. You need to check where your JAVA_HOME is configured, possibly one of these places,
计算机--->高级-->环境变量--->JAVA_HOME
Computer--->Advanced --> Environment variables---> JAVA_HOME
您的服务器启动批处理文件.
Your server startup batch files.
在您的导入命令中 -keystore cacerts(在此处提供上述 JRE 的完整路径,而不仅仅是说 cacerts).
In your import command -keystore cacerts (give full path to the above JRE here instead of just saying cacerts).
这篇关于如何找出我的 JVM 正在使用的密钥库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何找出我的 JVM 正在使用的密钥库?


基础教程推荐
- Java Swing计时器未清除 2022-01-01
- 大摇大摆的枚举 2022-01-01
- 在 Java 中创建日期的正确方法是什么? 2022-01-01
- 从 python 访问 JVM 2022-01-01
- 验证是否调用了所有 getter 方法 2022-01-01
- 多个组件的复杂布局 2022-01-01
- 如何在 Spring @Value 注解中正确指定默认值? 2022-01-01
- 不推荐使用 Api 注释的描述 2022-01-01
- 如何在 JFrame 中覆盖 windowsClosing 事件 2022-01-01
- Java 实例变量在两个语句中声明和初始化 2022-01-01