Mac Android签名生成keystore

Mac Android签名生成keystore,第1张

概述1、打开终端2、去到java安装的根目录,即输入cd /Library/Java/Home/bin/3、当前用户没有最高权限,在Library文件夹下不能生成任何文件,可以到当前用户目录下生成文件ke

1、打开终端

2、去到java安装的根目录,即输入

cd /library/Java/Home/bin/

3、当前用户没有最高权限,在library文件夹下不能生成任何文件,可以到当前用户目录下生成文件

keytool -genkey -v -keystore androID.keystore -alias androID -keyalg RSA -valIDity 20000 -keystore /Users/当前用户的用户名/androID_demo.keystore

如果当前的用户名是xiaoming,则如下

keytool -genkey -v -keystore androID.keystore -alias androID -keyalg RSA -valIDity 20000 -keystore /Users/xiaoming/androID_demo.keystore

4、按照提示输入即可,完整代码如下

xiaomingdeiMac:/ xiaoming$ cd /library/Java/Home/bin/xiaomingdeiMac:bin xiaoming$ keytool -genkey -v -keystore androID.keystore -alias androID -keyalg RSA -valIDity 20000 -keystore /Users/xiaoming/androID_demo.keystoreEnter keystore password:  Re-enter new password: What is your first and last name?  [UnkNown]:  li XiaoMingWhat is the name of your organizational unit?  [UnkNown]:  www.xiaoming.comWhat 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]:  86Is CN=li XiaoMing,OU=www.xiaoming.com,O=小明集团,L=广州,ST=广东省,C=86 correct?  [no]:  yesGenerating 1,024 bit RSA key pair and self-signed certificate (SHA1withRSA) with a valIDity of 20,000 days	for: CN=li XiaoMing,C=86Enter key password for <androID>	(RETURN if same as keystore password):  [Storing /Users/xiaoming/androID_demo.keystore]

5、到这里就可以到当前用户根目录下查看生产的keystore签名文件了

参考官网:http://developer.androID.com/intl/zh-cn/tools/publishing/app-signing.HTML#signing-manually

本文链接:http://www.cnblogs.com/liqw/articles/4064662.HTML

总结

以上是内存溢出为你收集整理的Mac Android签名生成keystore全部内容,希望文章能够帮你解决Mac Android签名生成keystore所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1119276.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存