如何找出我的 JVM 正在使用的密钥库? [英] How do I find out what keystore my JVM is using?

查看:24
本文介绍了如何找出我的 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,

  1. 计算机--->高级-->环境变量--->JAVA_HOME

  1. 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 正在使用的密钥库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆