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 正在使用的密钥库?
基础教程推荐
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- 如何对 Java Hashmap 中的值求和 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
