请问一下鸿蒙的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}
你可以参考官方文档对应用进行自动化签名,参考链接:https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ide_debug_device-0000001053822404