当前位置: 首页 > news >正文

使用keytool生成Android平台签名证书(.keystore)

参考:https://ask.dcloud.net.cn/article/35777

例如将cgs-uniapp-test-20260324-01.keystore文件生成到D:\MyStudy\learn-uniapp目录下,命令如下:

D:\MyStudy\learn-uniapp>keytool-genkey-aliastestalias-keyalgRSA-keysize2048-validity36500-keystorecgs-uniapp-test-20260324-01.keystore Enter keystore password: Re-enter new password: What is your first and last name?[YangLi]: cgs What is the name of your organizational unit?[cgs]: cgs What is the name of your organization?[cgs]: cgs What is the name of your City or Locality?[QinHuangDao]: cgs What is the name of your State or Province?[HeBei]: cgs What is the two-letter country codeforthis unit?[Zh]: cgs IsCN=cgs,OU=cgs,O=cgs,L=cgs,ST=cgs,C=cgs correct?[no]: y Enter key passwordfor<testalias>(RETURNifsame as keystore password): Re-enter new password: Warning: The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12whichis an industry standardformatusing"keytool -importkeystore -srckeystore cgs-uniapp-test-20260324-01.keystore -destkeystore cgs-uniapp-test-20260324-01.keystore -deststoretype pkcs12".D:\MyStudy\learn-uniapp>keytool-list-v-keystorecgs-uniapp-test-20260324-01.keystore Enter keystore password: Keystore type: jks Keystore provider: SUN Your keystore contains1entry Alias name: testalias Creation date:2026-3-24 Entry type: PrivateKeyEntry Certificate chain length:1Certificate[1]: Owner:CN=cgs,OU=cgs,O=cgs,L=cgs,ST=cgs,C=cgs Issuer:CN=cgs,OU=cgs,O=cgs,L=cgs,ST=cgs,C=cgs Serial number: 5a613b4d Valid from: Tue Mar2413:14:08 CST2026until: Thu Feb2813:14:08 CST2126Certificate fingerprints: SHA1:97:E2:04:1D:06:20:2E:EA:AA:D8:5C:4B:1F:AE:E6:D3:D4:7F:E9:1E SHA256:14:9F:AC:AB:B7:FA:54:E4:0D:D3:C1:8E:66:35:77:B8:14:E7:BE:51:C3:83:1D:56:8A:7F:6C:23:04:6E:10:89 Signature algorithm name: SHA256withRSA Subject Public Key Algorithm:2048-bit RSA key Version:3Extensions:#1: ObjectId: 2.5.29.14 Criticality=falseSubjectKeyIdentifier[KeyIdentifier[0000:363A B989289B76FE EE239676CB A4 D4 AF6:..(.v..#.v....0010:4621BF A0 F!..]]******************************************* ******************************************* Warning: The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12whichis an industry standardformatusing"keytool -importkeystore -srckeystore cgs-uniapp-test-20260324-01.keystore -destkeystore cgs-uniapp-test-20260324-01.keystore -deststoretype pkcs12".D:\MyStudy\learn-uniapp>
http://www.jsqmd.com/news/532170/

相关文章:

  • HTTPS:互联网安全的守护神——从握手到加密的全景解析
  • 浏览器自动化革命:5分钟构建多模型AI Agent的Web界面解决方案
  • 创作平权:Motion LoRA如何让独立创作者实现电影级运镜自由
  • 实时语音变换工具 Voice Changer:从零开始掌握AI变声技术
  • 2026年留学中介怎么选?关键维度与机构推荐 - 品牌排行榜
  • Chatbot基于用户行为的反馈学习:从零构建自适应对话系统
  • 微软与LinkedIn的生成式AI职业基础课程免费吗?开发者如何利用AI辅助学习
  • 【避坑指南】SpringBoot中@Aspect注解失效的隐藏陷阱与解决方案
  • 『NAS』在NAS部署简易版PS-miniPaint
  • Debian新手必看:NVIDIA驱动安装全流程避坑指南(附常见错误解决方案)
  • 5步构建企业级视频分享平台后端框架搭建指南
  • yamlresume:代码化简历的极简管理方案
  • HunyuanVideo-Foley开源大模型:支持多语言prompt输入与音效生成
  • 【仅限核心运维团队内部流通】:Python异步I/O调试暗箱手册(含CPython源码级event loop钩子注入方案)
  • Pixel Dimension Fissioner 数据库集成:MySQL存储用户生成内容与模型参数
  • 2026北京留学中介排名及服务能力深度解析 - 品牌排行榜
  • 2026上海商圈广告位公司推荐榜:聚焦核心流量服务商 - 品牌排行榜
  • OpenClaw+nanobot轻量级部署:5分钟搭建个人AI助手实战
  • 开源工具图像转换:用数字画生成器打造DIY创作
  • Mermaid:文本驱动的可视化革命——从概念到企业级实践
  • Dify + 自研Hybrid Retriever部署踩坑大全,含GPU显存泄漏修复与QPS翻倍配置(附12份SRE校验清单)
  • cudnn和tensorrt安装教程
  • ReShade后处理注入器:让任何游戏画面焕发新生的终极解决方案
  • 颠覆式AI视频创作:零门槛智能效率工具,让普通人也能制作专业内容
  • 五和密胺火锅餐具实测推荐:火锅党必备耐用好物
  • 终极指南:使用SMUDebugTool优化AMD Ryzen系统性能与稳定性
  • AI赋能长篇创作:AI_NovelGenerator的创作范式革新
  • PZEM-004T v3.0模块实现电力参数监测:从原理到实践的进阶指南
  • ArkTS声明式开发范式之传统曲线/弹簧曲线
  • KLayout实现Python与DRC检查集成:突破版图验证自动化瓶颈的实战方案