FOREACH(certIt, list)
{
- ValidationCore::Crypto::Hash::SHA1 sha1;
- sha1.Append((*certIt)->getDER());
- sha1.Finish();
- std::string sha1String = sha1.ToBase64String();
pkgmgr_instcert_type instCertType;
if (source == SIGNATURE_DISTRIBUTOR) {
if((pkgmgr_installer_set_cert_value(
m_pkgHandle,
instCertType,
- const_cast<char*>(sha1String.c_str()))) < 0) {
+ const_cast<char*>(((*certIt)->getBase64()).c_str()))) < 0) {
LogError("pkgmgrInstallerSetCertValue fail");
ThrowMsg(Exceptions::SetCertificateInfoFailed,
"Failed to Set CertValue");
m_contextData(inCont),
WidgetInstallPopup(inCont)
{
- /* This is temporary comment for certi error
- After security-server, cert-svc release, should remove comment
AddStep(&TaskCertify::stepSignature);
- */
// Block until fixed popup issues
if (!GlobalSettings::PopupsTestModeEnabled()