mirror of
https://github.com/openziti/desktop-edge-win.git
synced 2026-10-14 00:29:48 +00:00
removing file hash
This commit is contained in:
@@ -33,8 +33,6 @@ namespace ZitiUpdateService {
|
||||
|
||||
public bool useGithubCheck { get; private set; }
|
||||
|
||||
private static string[] expected_hashes = new string[] { "39636E9F5E80308DE370C914CE8112876ECF4E0C", "51D52749DA021F095B021DF8C09BD62C55C36F1F" };
|
||||
|
||||
private static string[] expected_subject = new string[] { @"CN=""NetFoundry, Inc."", O=""NetFoundry, Inc."", L=Herndon, S=Virginia, C=US", @"CN=NetFoundry Inc., O=NetFoundry Inc., L=Herndon, S=Virginia, C=US" };
|
||||
|
||||
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
||||
@@ -660,16 +658,6 @@ namespace ZitiUpdateService {
|
||||
Logger.Info("the file downloaded uses a known subject. installation and can proceed. [subject:{0}]", subject);
|
||||
}
|
||||
|
||||
var hash = signer.GetCertHashString();
|
||||
if (!expected_hashes.Contains(hash)) {
|
||||
Logger.Error("the file downloaded is signed by an unknown certificate! the installation will not proceed. [hash:{0}]", hash);
|
||||
inUpdateCheck = false;
|
||||
return;
|
||||
|
||||
} else {
|
||||
Logger.Info("the file downloaded is signed by a known certificate. installation and can proceed. [subject:{0}]", subject);
|
||||
}
|
||||
|
||||
StopZiti();
|
||||
StopUI().Wait();
|
||||
|
||||
|
||||
@@ -85,6 +85,8 @@ echo REMOVING old build folder if it exists at %TUNNELER_SDK_DIR%build
|
||||
rmdir /s /q %TUNNELER_SDK_DIR%build
|
||||
echo REMOVING ziti.dll at %SVC_ROOT_DIR%ziti.dll
|
||||
del /q %SVC_ROOT_DIR%ziti.dll
|
||||
echo REMOVING wintun.dll at %SVC_ROOT_DIR%wintun.dll
|
||||
del /q %SVC_ROOT_DIR%wintun.dll
|
||||
|
||||
:QUICK
|
||||
|
||||
|
||||
Reference in New Issue
Block a user