uniApp 创建Android.keystore证书&IOS的证书

Android 证书

1、安装JRE环境

可从Oracle官方下载jre安装包:https://www.oracle.com/technetwork/java/javase/downloads/index.html

打开命令行(cmd),输入以下命令:

复制代码
//切换工作目录到f:路径
D:  
//将jre命令添加到临时环境变量中,实际操作时请修改为自己安装目录
set PATH=%PATH%;"D:\javaJdk\jre\bin"

2、生成签名证书

使用keytool -genkey命令生成证书:

复制代码
keytool -genkey -alias testalias -keyalg RSA -keysize 2048 -validity 36500 -keystore test.keystore
// testalias是证书别名,可修改为自己想设置的字符,建议使用英文字母和数字
// test.keystore是证书文件名称,可修改为自己想设置的文件名称

Enter keystore password:    //输入密钥库密码                                                                 
Re-enter new password:     //再次输入同样的密码
What is your first and last name?  //你的名字和姓氏是什么?
[Unknown]:  John Doe
What is the name of your organizational unit?  //你的组织单位叫什么名字?
[Unknown]:  IT Department
What is the name of your organization?   //贵公司的名称是什么?
[Unknown]:  Example Inc.
What is the name of your City or Locality?   //你所在城市或地区的名称是什么?
[Unknown]:  San Francisco
What is the name of your State or Province?   //你所在的州或省叫什么名字?
[Unknown]:  California
What is the two-letter country code for this unit?   //这个单位的两个字母的国家代码是多少?
[Unknown]:  US
Is CN=John Doe, OU=IT Department, O=Example Inc., L=San Francisco, ST=California, C=US correct?
[no]:  yes

3、查看证书信息

复制代码
// 打开命令行(cmd),输入以下命令查看:
keytool -list -v -keystore test.keystore
//输入密码,回车
// 其中证书指纹信息(Certificate fingerprints):
// MD5   证书的MD5指纹信息(安全码MD5)
// SHA1   证书的SHA1指纹信息(安全码SHA1)
// SHA256  证书的SHA256指纹信息(安全码SHA245)

// test.keystore是证书文件名称,即自己刚设置的文件名称

4、删除证书条目

复制代码
keytool -delete -alias 证书别名 -keystore 文件地址.keystore -storepass 密码

IOS 证书

申请证书官方有很详细的说明

相关推荐
云上凯歌13 分钟前
01_AI工具平台项目概述.md
人工智能·python·uni-app
郑州光合科技余经理41 分钟前
O2O上门预约小程序:全栈解决方案
java·大数据·开发语言·人工智能·小程序·uni-app·php
2501_916008891 小时前
在不越狱前提下导出 iOS 应用文件的过程,访问应用沙盒目录,获取真实数据
android·macos·ios·小程序·uni-app·cocoa·iphone
2501_915106321 小时前
Android和IOS 移动应用App图标生成与使用 Assets.car生成
android·ios·小程序·https·uni-app·iphone·webview
木子啊1 小时前
UNIAPP移动端瀑布流列表,支持APP、微信小程序、H5
uni-app·瀑布流·两列排序
2501_915918412 小时前
Mac 抓包软件有哪些?Charles、mitmproxy、Wireshark和Sniffmaster哪个更合适
android·ios·小程序·https·uni-app·iphone·webview
2501_915106322 小时前
iOS 抓包绕过 SSL 证书认证, HTTPS 暴力抓包、数据流分析
android·ios·小程序·https·uni-app·iphone·ssl
WeiAreYoung2 小时前
uni-app xcode 制作iOS Notification Service Extension 远程推送图文原生插件
ios·uni-app·xcode
2501_9159214310 小时前
iOS App 电耗管理 通过系统电池记录、Xcode Instruments 与克魔(KeyMob)组合使用
android·ios·小程序·https·uni-app·iphone·webview
2501_9159184120 小时前
iOS App 测试方法,Xcode、TestFlight与克魔(KeyMob)等工具组合使用
android·macos·ios·小程序·uni-app·iphone·xcode