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 正在使用的密钥库?
基础教程推荐
- 将 Windows 证书导入 Java 2022-01-01
- 将 double 转换为 Int,向下舍入 2022-01-01
- 控制台应用程序中的 Java 键盘输入解析 2022-01-01
- 如何在相机中应用自定义滤镜 [Surfaceview 预览]. 2022-01-01
- JPA惰性列表上的流 2022-01-01
- Java ECDSAwithSHA256 签名长度不一致 2022-01-01
- Maven:无效的目标版本:10 2022-01-01
- 在springboot中如何给mybatis加拦截器 2023-04-29
- 在java中使用xpath和selenium解析HTML表格数据 2022-01-01
- doFilter()是在servlet的工作完成之前还是之后执行的? 2022-01-01
