removing file hash

This commit is contained in:
Mary Lincy Dcouto
2021-05-17 17:34:40 +05:30
parent fbbcfa7c10
commit aa12e8ab65
2 changed files with 2 additions and 12 deletions
-12
View File
@@ -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();
+2
View File
@@ -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