Languages

Menu
Sites
Language
Check certificate error [-12] failed

I get this error: "Check certificate error [-12] failed" when trying to run my watch on Emulator or on connected device. In all cases I get this error.

I am sure I have created correct certificate profile: it is Samsung-type, it includes DUIDs of both emulator and connected device. "Build Signed Package" operation also executes fine. But installation of the package on emulator and on watch device fails with error code -12.

Why I get this certificate check error?

This Device Manager output:

dlog_log_provider.cpp: error(40) > [XmlsecAdapter.cpp:162] LogErrorPrint(): [digests.c:305] xmlSecOpenSSLEvpDigestVerify(): obj=sha256, subj=, error=12:invalid data:data and digest do not match

dlog_log_provider.cpp: error(40) > [XmlsecAdapter.cpp:162] LogErrorPrint(): [transforms.c:1826] xmlSecTransformVerifyNodeContent(): obj=sha256, subj=xmlSecTransformVerify, error=1:xmlsec library function failed:

dlog_log_provider.cpp: error(40) > [XmlsecAdapter.cpp:162] LogErrorPrint(): [xmldsig.c:1084] xmlSecDSigCtxProcessReferences(): obj=, subj=xmlSecDSigReferenceCtxProcessNode, error=1:xmlsec library function failed:node=Reference

dlog_log_provider.cpp: error(40) > [XmlsecAdapter.cpp:162] LogErrorPrint(): [xmldsig.c:653] xmlSecDSigCtxProcessSignatureNode(): obj=, subj=xmlSecDSigCtxProcessReferences, error=1:xmlsec library function failed:

dlog_log_provider.cpp: error(40) > [XmlsecAdapter.cpp:162] LogErrorPrint(): [xmldsig.c:434] xmlSecDSigCtxVerify(): obj=, subj=xmlSecDSigCtxSignatureProcessNode, error=1:xmlsec library function failed:

dlog_log_provider.cpp: error(40) > [BaseValidator.cpp:356] baseCheck(): XmlSec invalid signature : [home/abuild/rpmbuild/BUILD/cert-svc-2.2.2/src/vcore/XmlsecAdapter.cpp:319] validateFile() InvalidSig: Signature verify error.

| ERROR   |                           : certificate_validation.cc:229        : signature validation check failed : Invalid signature. Signed with wrong key, changed signature file or changed package file.

| ERROR   |                           : pkgmgr_signal.cc:155                 : PkgmgrSignal error_value: (-12:Invalid signature. Signed with wrong key, changed signature file or changed package file.:<-4>)

| DEBUG   |                           : pkgmgr_signal.cc:192                 : Success to send pkgmgr signal PKGID=pro.kibernetik.watches.saito KEY=error VALUE=-12:Invalid signature. Signed with wrong key, changed signature file or changed package file.:<-4>

| DEBUG   |                           : pkgmgr_signal.cc:217                 : Success to send pkgmgr signal USER=5001 PKGID=pro.kibernetik.watches.saito KEY=error VALUE=-12:Invalid signature. Signed with wrong key, changed signature file or changed package file.:<-4>

| ERROR   | AppInstaller              : app_installer.cc:73                  : Error during processing

| ERROR   | AppInstaller              : app_installer.cc:97                  : Failure occurs in step: Signature

 

My setup: macOS 10.15.1, Tizen Studio 3.5, JDK 8

Edited by: Bao Babus on 08 Nov, 2019
View Selected Answer

Responses

1 Replies
Mark as answer
Bao Babus

I have resolved the problem.

I was making my ceretificate profile when my watch device and emulator were both running. So, DUIDs of both of them got into the distribution certificate. When I closed the emulator and re-created certificates, I got only watch device DUID into the distribution certificate - and everything became working fine since then.