zoukankan      html  css  js  c++  java
  • Mac Android签名生成keystore

    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.keystore
    Enter keystore password:  
    Re-enter new password: 
    What is your first and last name?
      [Unknown]:  Li XiaoMing
    What is the name of your organizational unit?
      [Unknown]:  www.xiaoming.com
    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]:  86
    Is CN=Li XiaoMing, OU=www.xiaoming.com, O=小明集团, L=广州, ST=广东省, C=86 correct?
      [no]:  yes
    
    Generating 1,024 bit RSA key pair and self-signed certificate (SHA1withRSA) with a validity of 20,000 days
    	for: CN=Li XiaoMing, OU=www.xiaoming.com, O=小明集团, L=广州, ST=广东省, C=86
    Enter 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

  • 相关阅读:
    多尺度双边滤波及基于小波变换的非线性扩散
    yum安装CentOS7+nginx+php7.3+mysql5.7
    python学习之特殊魔法__getattr__,__getattribute__
    python学习之特殊魔法__get__,__set__,__delete__
    python学习之装饰器
    python学习之私有属性
    python学习之包装与授权
    python学习之生成器(generator)
    python学习之运用特殊方法,定制类
    python学习之创建迭代器对象
  • 原文地址:https://www.cnblogs.com/liqw/p/4064662.html
Copyright © 2011-2022 走看看