keytool错误: java.lang.Exception: 密钥库文件不存在: C:\Users\Administrator\.keystore

huangapple go评论74阅读模式
英文:

keytool error: java.lang.Exception: Keystore file does not exist: C:\Users\Administrator\.keystore

问题

我执行了以下命令:
keytool -genkey -alias vendavodev1 -keyalg RSA -keysize 2048 -storetype jks -keystore vendavo.keystore

然后当我执行以下命令时:
keytool -certreq -keyalg RSA -alias vendavodev1 -file certreq.txt

我收到以下错误消息:
keytool 错误: java.lang.Exception: 密钥库文件不存在: C:\Users\Administrator\.keystore

英文:

First i executed this command:
keytool -genkey -alias vendavodev1 -keyalg RSA -keysize 2048 -storetype jks -keystore vendavo.keystore

After that when i execute this command:
keytool -certreq -keyalg RSA -alias vendavodev1 -file certreq.txt

I get the following error:
keytool error: java.lang.Exception: Keystore file does not exist: C:\Users\Administrator\.keystore

答案1

得分: 0

在第一条命令中,您使用 -keystore vendavo.keystore 定义密钥库的名称。

您还需要将此参数传递给第二个命令,否则将使用默认的密钥库。
keytool -certreq -keyalg RSA -alias vendavodev1 -file certreq.txt -keystore vendavo.keystore

英文:

In the first command you define the keystore name with -keystore vendavo.keystore

You also need to pass this argument to second command, otherwise the default keytore is used.
keytool -certreq -keyalg RSA -alias vendavodev1 -file certreq.txt -keystore vendavo.keystore

huangapple
  • 本文由 发表于 2023年2月14日 19:51:19
  • 转载请务必保留本文链接:https://go.coder-hub.com/75447434.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定