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 : [0;36m[home/abuild/rpmbuild/BUILD/cert-svc-2.2.2/src/vcore/XmlsecAdapter.cpp:319][m validateFile() [4;35mInvalidSig[m: Signature verify error.[m
[1;31m| ERROR |[0m : certificate_validation.cc:229 : signature validation check failed : Invalid signature. Signed with wrong key, changed signature file or changed package file.
[1;31m| ERROR |[0m : pkgmgr_signal.cc:155 : PkgmgrSignal error_value: (-12:Invalid signature. Signed with wrong key, changed signature file or changed package file.:<-4>)
[0m| DEBUG |[0m : 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>
[0m| DEBUG |[0m : 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>
[1;31m| ERROR |[0m AppInstaller : app_installer.cc:73 : Error during processing
[1;31m| ERROR |[0m AppInstaller : app_installer.cc:97 : Failure occurs in step: Signature
My setup: macOS 10.15.1, Tizen Studio 3.5, JDK 8