【 HarmonyOS 】错误描述:The certificate has expired! 鸿蒙证书过期如何解决?
【 HarmonyOS 】错误描述:The certificate has expired! 鸿蒙证书过期如何解决?
一、问题背景:
hvigor ERROR: Failed :entry:default@SignHap..
hvigor ERROR: Tools execution failed. 09-01 15:21:21 ERROR - The certificate has expired! NotAfter: Sun Aug 10 16:25:28 CST 202509-01 15:21:21 ERRoR - hap-sign-tool: error: The certificate has expired! NotAfter: Sun Aug 10 16:25:28 CST 2025
- Try the following:
The certificate format is incorrect, please check your appCertFile parameterDetail:Please check the message from tools.
二、解决方案:
1、首先检查AGC平台的应用对应证书是否已过期: 2、可以重新自动签名或者更换证书,方法如下: 在File-Project Structure-Signing Configs下查看证书存储路径(Certpath file(*.cer))。 进入证书存储路径,将过期的证书删除(一般4个)。
3、本地调试时,在适用自动签名的场景,可以在Signing Configs页面勾选Automatically generate signature完成自动签名,其余需要手动签名的场景,需要去官网生成新的证书并更换证书。
官网链接:https://developer.huawei.com/consumer/cn/doc/architecture-guides/tools-v1_2-ts_267-0000002427231337
- 1回答
- 1粉丝
- 0关注
- EPERM: operation not permitted如何解决
- 鸿蒙开发:如何解决软键盘弹出后的间距
- The "paths[1]" argument must be of type string. Received undefined 错误的解决
- 如何解决Text组件文本为内容中文、数字、英文混合时显示省略号截断异常
- Harmonyos next 鸿蒙原生 证书 & 打包到真机
- 鸿蒙如何查询应用包的名称、供应商、版本号、版本文本、安装时间、更新时间描述信息
- 【HarmonyOS】鸿蒙应用开发Text控件常见错误
- Openharmony App development tutorial (0) The First Glance
- 鸿蒙开发:应用上架第二篇,申请发布证书
- APP构建错误
- 鸿蒙开发:使用nestedScroll解决滑动冲突
- 【HarmonyOS Next】鸿蒙应用公钥和证书MD5指纹的获取
- HarmonyOS NEXT应用开发 ( 应用的签名打包上架,各种证书详解)
- 【HarmonyOS】Check whether undefined attributes or methods are used in the hvigorconfig.ts a
- (六三)HarmonyOS Design 的错误处理与反馈