diff --git a/PowerEditor/installer/packageAll.bat b/PowerEditor/installer/packageAll.bat index 12f2d26ad..635d83f57 100644 --- a/PowerEditor/installer/packageAll.bat +++ b/PowerEditor/installer/packageAll.bat @@ -20,7 +20,7 @@ echo on if %SIGN% == 0 goto NoSign set signtoolWin11="C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\signtool.exe" -set signBinary=%signtoolWin11% sign /fd SHA256 /tr http://timestamp.digicert.com /td sha256 /a /f %NPP_CERT% /p %NPP_CERT_PWD% /d "Notepad++" /du https://notepad-plus-plus.org/ +set signBinary=%signtoolWin11% sign /fd SHA512 /tr http://timestamp.acs.microsoft.com /td sha512 /a /f %NPP_CERT% /p %NPP_CERT_PWD% /d "Notepad++" /du https://notepad-plus-plus.org/ %signBinary% ..\bin\notepad++.exe @@ -32,11 +32,11 @@ If ErrorLevel 1 goto End %signBinary% ..\bin\NppShell.x86.dll If ErrorLevel 1 goto End -%signBinary% ..\bin64\NppShell.msix +rem %signBinary% ..\bin64\NppShell.msix If ErrorLevel 1 goto End %signBinary% ..\bin64\NppShell.x64.dll If ErrorLevel 1 goto End -%signBinary% ..\binarm64\NppShell.msix +rem %signBinary% ..\binarm64\NppShell.msix If ErrorLevel 1 goto End %signBinary% ..\binarm64\NppShell.arm64.dll If ErrorLevel 1 goto End diff --git a/PowerEditor/src/MISC/Common/verifySignedfile.cpp b/PowerEditor/src/MISC/Common/verifySignedfile.cpp index 522db0fc8..cecb20f4c 100644 --- a/PowerEditor/src/MISC/Common/verifySignedfile.cpp +++ b/PowerEditor/src/MISC/Common/verifySignedfile.cpp @@ -31,8 +31,8 @@ using namespace std; -SecurityMode SecurityGuard::_securityMode = sm_sha256; -//SecurityMode SecurityGuard::_securityMode = sm_certif; +//SecurityMode SecurityGuard::_securityMode = sm_sha256; +SecurityMode SecurityGuard::_securityMode = sm_certif; SecurityGuard::SecurityGuard() { diff --git a/PowerEditor/src/MISC/Common/verifySignedfile.h b/PowerEditor/src/MISC/Common/verifySignedfile.h index cbf4ef8ff..00c870e43 100644 --- a/PowerEditor/src/MISC/Common/verifySignedfile.h +++ b/PowerEditor/src/MISC/Common/verifySignedfile.h @@ -68,7 +68,7 @@ private: // Code signing certificate std::wstring _signer_display_name = L"Notepad++"; std::wstring _signer_subject = L"C=FR, S=Ile-de-France, L=Saint Cloud, O=\"Notepad++\", CN=\"Notepad++\""; - std::wstring _signer_key_id = L"E687332916D6B681FE28C5EF423CEE259D3953B9"; + std::wstring _signer_key_id = L"BDA51B6C752C9E448498A690CCDA00A609F244A3"; bool _doCheckRevocation = false; bool _doCheckChainOfTrust = false;