keytool -genkey在循环中运行以生成.keystore文件 [英] keytool -genkey runs in a loop to generate .keystore file

查看:136
本文介绍了keytool -genkey在循环中运行以生成.keystore文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在cmd上调用了这个:

I invoked this on cmd:

keytool -genpair -v - keystore myrelease.keystore -keyalg RSA - keysize 2048 -validity 1000

该工具运行,询问问题,然后再次循环查询问题。它不会生成.keystore。

The tool runs, asks the questions, and then loops again to the questions. It doesn´t generate the .keystore.

请帮忙。我无法通过该循环来生成我的.keystore。

Please help. I can´t pass that loop to generate my .keystore.

我已将所有权限赋予java / bin文件夹,也将文件夹更改为C:/但仍然在最后一个问题之后循环运行。我输入y和yes来确认.keystore创建但不生成一个。请帮忙。
谢谢。
我需要检查哪些其他权限/设置?

I´ve given all permisions to java/bin folder, also changed the folder to C:/ but still runs in a loop after the last question. I type "y" and "yes" to confirm the .keystore creation but doesn´t generate one. Please help. Thanks. What other permissions/setups do I need to check?

推荐答案

KeyTool使用特定于语言环境的资源包进行比较您对是/y的确认问题的回答。换句话说:它希望答案采用与问题相同的语言

KeyTool uses a locale-specific resource bundle for comparing your answer to the confirmation question with "yes"/"y". In other words: It expects the answer in the same language as the question.

例如德语:

  Ist CN=test, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=DE richtig?
  [Nein]:  ja

用英语回答()以上问题将被keytool解释为用户未确认,因此keytool将重新开始提问。

Answering in English ("yes") to the above question would have been interpreted by keytool as "user did not confirm" and therefore keytool would start over with the questions.

这篇关于keytool -genkey在循环中运行以生成.keystore文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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