请问一下鸿蒙的pad应用该如何签名?

我想请问一下,开发pad应用时应该怎么签名 今天我签名应用的时候签名出现了以下错误log

重新弄了几次还是一样

2021-10-21 00:20:40.618 [main-374] ERROR com.huawei.signclient.hap.provider.SignProvider - Sign Hap failed.

com.huawei.signclient.hap.exception.SignatureException: {errorcode:0,message:generate SignerBlock failed}

    at com.huawei.signclient.hap.sign.SignHapV2.generateHapSignatureSchemeV2Block(SignHapV2.java:279) ~[hapsigntoolv2.jar:?]

    at com.huawei.signclient.hap.sign.SignHapV2.generateHapSigningBlock(SignHapV2.java:179) ~[hapsigntoolv2.jar:?]

    at com.huawei.signclient.hap.sign.SignHapV2.getHapSigningBlock(SignHapV2.java:167) ~[hapsigntoolv2.jar:?]

    at com.huawei.signclient.hap.sign.SignHapV2.sign(SignHapV2.java:325) ~[hapsigntoolv2.jar:?]

    at com.huawei.signclient.hap.provider.SignProvider.sign(SignProvider.java:362) [hapsigntoolv2.jar:?]

    at com.huawei.signclient.hap.signtool.HapSignTool.sign(HapSignTool.java:160) [hapsigntoolv2.jar:?]

    at com.huawei.signclient.hap.signtool.HapSignTool.processCmd(HapSignTool.java:72) [hapsigntoolv2.jar:?]

    at com.huawei.signclient.hap.signtool.HapSignTool.main(HapSignTool.java:59) [hapsigntoolv2.jar:?]

Caused by: com.huawei.signclient.hap.exception.SignatureException: {errorcode:0,message:Signature did not verify}

    at com.huawei.signclient.hap.sign.BcPkcs7Generator.verifySignatureFromServer(BcPkcs7Generator.java:232) ~[hapsigntoolv2.jar:?]

    at com.huawei.signclient.hap.sign.BcPkcs7Generator.getSignerInfo(BcPkcs7Generator.java:143) ~[hapsigntoolv2.jar:?]

    at com.huawei.signclient.hap.sign.BcPkcs7Generator.generateSignedData(BcPkcs7Generator.java:73) ~[hapsigntoolv2.jar:?]

    at com.huawei.signclient.hap.sign.SignHapV2.generateSignerBlock(SignHapV2.java:307) ~[hapsigntoolv2.jar:?]

    at com.huawei.signclient.hap.sign.SignHapV2.generateHapSignatureSchemeV2Block(SignHapV2.java:277) ~[hapsigntoolv2.jar:?]

    ... 7 more

2021-10-21 00:20:40.622 [main-400] ERROR com.huawei.signclient.hap.provider.SignProvider - hapsigntoolv2: error: Sign failed, {errorcode:0,message:generate SignerBlock failed}

Caused by: com.huawei.signclient.hap.exception.SignatureException: {errorcode:0,message:Signature did not verify}

鸿蒙
pad
HarmonyOS
2021-11-24 09:24:35
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
Hilaryy

你可以参考官方文档对应用进行自动化签名,参考链接:https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ide_debug_device-0000001053822404

分享
微博
QQ
微信
回复
2021-11-25 11:40:11
相关问题
ob有如何报错,麻烦帮忙看一下
181浏览 • 1回复 待解决
编译OpenHarmony2.0失败,求助一下
4635浏览 • 3回复 已解决
帐号授权相关问题,和大家讨论一下
6942浏览 • 3回复 待解决
有没有权限说明清单,分享一下啊?
617浏览 • 1回复 待解决
请问混合应用如何预置?
1506浏览 • 1回复 待解决