Android platform signature certificate (.keystore) and IOS platform (.p12 certificate)

1. Android platform signature certificate

1. First, install the JRE environment (JRE8 environment is recommended)

2. Generate a signed certificate

keytool -genkey -alias testalias -keyalg RSA -keysize 2048 -validity 36500 -keystore certificate.keystore
  • testalias is the certificate alias, which can be modified to the characters you want to set, it is recommended to use English letters and numbers
  • certificate.keystore is the name of the certificate file, which can be modified to the file name you want to set, or you can specify the complete file path
  • 36500 is the validity period of the certificate, which means the validity period of 100 years, and the unit is days. It is recommended to set the time longer to avoid certificate expiration
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]:  //输入国家/地区代号(两个字母),中国为CN,输入完成回车  
Is CN=XX, OU=XX, O=XX, L=XX, ST=XX, C=XX correct?  
  [no]:  //确认上面输入的内容是否正确,输入y,回车  

Enter key password for <testalias>  
        (RETURN if same as keystore password):  //确认证书密码与证书文件密码一样(HBuilder|HBuilderX要求这两个密码一致),直接回车就可以

 3. View certificate information

keytool -list -v -keystore test.keystore  
Enter keystore password: //输入密码,回车

2. IOS platform (.p12 certificate)

1. Open the computer's keychain

2. Enter the login email address of the developer background, select Save to disk, and then select Save in the pop-up file location 

 

 3. Open the official website of Apple Developers and create Certificates.

 

Select the file certificate that the keychain just generated 

 

Double-click to install the downloaded cer file

 

you're done

Guess you like

Origin blog.csdn.net/qq_42717015/article/details/129808434
Recommended