keytool error: java.lang.Exception: The -keyalg option must be specified
keytool error: java.lang.Exception: The -keyalg option must be specified
我在 Windows 10 Administrator 中生成我的 android 应用程序证书,这是我为我的应用程序生成证书时输入的命令。
keytool -genkey -v -keystore c:\my-release-key.keystore -alias omar
如图所示,您也可以看到错误。但是很抱歉,我是 Android 的新手,这是我第一次创建证书。非常感谢帮助。
错误是keytool error: java.lang.Exception: The -keyalg option must be specified
密码=“123456”
斯蒂芬已经回答了这个问题。谢谢。
就像你屏幕截图中的错误信息所说的那样。
The -keyalg option must be specified.
以下对我有用:
$ keytool -genkey -keyalg RSA -v -keystore foo.jks -alias smith
Enter keystore password:
Re-enter new password:
What is your first and last name?
[Unknown]: steve
What is the name of your organizational unit?
[Unknown]: here
What is the name of your organization?
[Unknown]: there
What is the name of your City or Locality?
[Unknown]: here
What is the name of your State or Province?
[Unknown]: there
What is the two-letter country code for this unit?
[Unknown]: AU
Is CN=steve, OU=here, O=there, L=here, ST=there, C=AU correct?
[no]: yes
Generating 2,048 bit RSA key pair and self-signed certificate (SHA256withRSA) with a validity of 90 days
for: CN=steve, OU=here, O=there, L=here, ST=there, C=AU
[Storing foo.jks]
更多信息,请参考Oracle KeyTool Documentation。
我在 Windows 10 Administrator 中生成我的 android 应用程序证书,这是我为我的应用程序生成证书时输入的命令。
keytool -genkey -v -keystore c:\my-release-key.keystore -alias omar
如图所示,您也可以看到错误。但是很抱歉,我是 Android 的新手,这是我第一次创建证书。非常感谢帮助。
错误是keytool error: java.lang.Exception: The -keyalg option must be specified
密码=“123456”
斯蒂芬已经回答了这个问题。谢谢。
就像你屏幕截图中的错误信息所说的那样。
The -keyalg option must be specified.
以下对我有用:
$ keytool -genkey -keyalg RSA -v -keystore foo.jks -alias smith
Enter keystore password:
Re-enter new password:
What is your first and last name?
[Unknown]: steve
What is the name of your organizational unit?
[Unknown]: here
What is the name of your organization?
[Unknown]: there
What is the name of your City or Locality?
[Unknown]: here
What is the name of your State or Province?
[Unknown]: there
What is the two-letter country code for this unit?
[Unknown]: AU
Is CN=steve, OU=here, O=there, L=here, ST=there, C=AU correct?
[no]: yes
Generating 2,048 bit RSA key pair and self-signed certificate (SHA256withRSA) with a validity of 90 days
for: CN=steve, OU=here, O=there, L=here, ST=there, C=AU
[Storing foo.jks]
更多信息,请参考Oracle KeyTool Documentation。