【 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完成自动签名,其余需要手动签名的场景,需要去官网生成新的证书并更换证书。

官网链接:developer.huawei.com/consumer/cn...

相关推荐
maaath2 分钟前
【maaath】Flutter for OpenHarmony 媒体工具应用开发实战
flutter·华为·harmonyos
nashane27 分钟前
HarmonyOS 6学习:应用推广引擎评论管理与长截图自动拼接实战
学习·华为·harmonyos·harmonyos 5
key_3_feng43 分钟前
鸿蒙基于润和DAYU200(RK3568)开发板的系统移植与实战开发
华为·harmonyos
Swift社区1 小时前
Store + System:鸿蒙游戏黄金分层
游戏·华为·harmonyos
_waylau1 小时前
历时三年《鸿蒙系统(HarmonyOS)移动开发实战》简介
华为·harmonyos·鸿蒙·鸿蒙系统
想你依然心痛1 小时前
HarmonyOS 6(API 23)实战:打造“空间相册“——基于 Face AR 表情驱动 + 沉浸光感悬浮导航的 PC 端沉浸式照片浏览系统
华为·ar·harmonyos·悬浮导航·沉浸光感
maaath1 小时前
【maaath】 Flutter for OpenHarmony 快捷工具箱应用实战开发
flutter·华为·harmonyos
maaath1 小时前
【maaath】Flutter for OpenHarmony 实战:茶叶茶艺应用开发详解
flutter·华为·harmonyos
maaath1 小时前
【maaath】Flutter for OpenHarmony 的手办展示应用开发实践
flutter·华为·harmonyos
Math_teacher_fan14 小时前
Flutter 跨平台开发实战:鸿蒙与音乐律动艺术(六)、Lissajous 利萨茹曲线:频率耦合的轨迹艺术
flutter·ui·数学建模·华为·harmonyos·鸿蒙系统