mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-24 14:24:58 +02:00
Use self-signed certificate
This commit is contained in:
parent
dfa7417daa
commit
03063ebf4b
@ -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
|
||||
|
@ -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()
|
||||
{
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user