英文:
i cant create keystore in flutter
问题
keytool 出现错误: java.io.FileNotFoundException: %userprofile%\upload-keystore.jks (系统找不到指定的路径)。
java.io.FileNotFoundException: %userprofile%\upload-keystore.jks (系统找不到指定的路径)
在java.io.FileOutputStream.open0(Native Method)
在java.io.FileOutputStream.open(FileOutputStream.java:270)
在java.io.FileOutputStream.
在java.io.FileOutputStream.
在sun.security.tools.keytool.Main.doCommands(Main.java:1194)
在sun.security.tools.keytool.Main.run(Main.java:366)
在sun.security.tools.keytool.Main.main(Main.java:359)。
制作密钥库的步骤:
输入密钥库密码:
重新输入新密码:
您的名字是什么?
[Unknown]:
您的组织单位名称是什么?
[Unknown]:
您的组织名称是什么?
[Unknown]:
您所在城市或地点的名称是什么?
[Unknown]:
您所在的州或省的名称是什么?
[Unknown]:
此单位的两个字母国家/地区代码是什么?
[Unknown]:
CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown 正确吗?
[no]: yes
生成2,048位RSA密钥对和自签名证书(SHA256withRSA),有效期为10,000天
对于:CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown
为
(如果与密钥库密码相同,则按回车键):
上述消息显示了出现的问题。我也找不到密钥库的文件位置。这是因为它尚未创建吗?
英文:
I've follow the instruction but this message showed up
    keytool error: java.io.FileNotFoundException: %userprofile%\upload-keystore.jks (The system cannot find the path specified)ecified)
java.io.FileNotFoundException: %userprofile%\upload-keystore.jks (The system cannot find the path specified)       
        at java.io.FileOutputStream.open0(Native Method)
        at java.io.FileOutputStream.open(FileOutputStream.java:270)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:101)
        at sun.security.tools.keytool.Main.doCommands(Main.java:1194)
        at sun.security.tools.keytool.Main.run(Main.java:366)
        at sun.security.tools.keytool.Main.main(Main.java:359)
THE STEP I DID TO MAKE KEYSTORE :
    Enter keystore password:
Re-enter new password: 
What is your first and last name?
  [Unknown]:
What is the name of your organizational unit?
  [Unknown]:
What is the name of your organization?
  [Unknown]:
What is the name of your City or Locality?
  [Unknown]:
What is the name of your State or Province?
  [Unknown]:
What is the two-letter country code for this unit?
  [Unknown]:
Is CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown correct?
  [no]:  yes
Generating 2,048 bit RSA key pair and self-signed certificate (SHA256withRSA) with a validity of 10,000 days
        for: CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown
Enter key password for <upload>
        (RETURN if same as keystore password):
and the message above showed up. i also couldnt find the file location of keystore. is that because its not created yet?
答案1
得分: 1
keytool -genkey -v -keystore C:\location_of_your_project\your_project\android\app\upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload
英文:
Run:
keytool -genkey -v -keystore C:\location_of_your_project\your_project\android\app\upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload
答案2
得分: 0
在你的项目终端中运行以下命令:
keytool -genkey -v -keystore C:\Users\Administrator\keystore\AppName-keystore.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias upload
在C:\Users\Administrator\keystore\这里输入你的文件夹路径以保存keystore文件。
英文:
run this command in your project terminal
keytool -genkey -v -keystore C:\Users\Administrator\keystore\AppName-keystore.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias upload
C:\Users\Administrator\keystore\ here enter your folder path to save keystore file
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。


评论