From 684bebd334170657400e430a8a953d0346e9ec88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=9B=BD=E4=BC=9F?= <366193849@qq.com> Date: Mon, 15 Nov 2021 09:33:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=8E=86=E5=8F=B2=E6=89=8B?= =?UTF-8?q?=E5=B7=A5=E5=AE=89=E8=A3=85=E7=9A=84=E8=AF=81=E4=B9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FastGithub.HttpServer/CaCertInstallerOfLinux.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/FastGithub.HttpServer/CaCertInstallerOfLinux.cs b/FastGithub.HttpServer/CaCertInstallerOfLinux.cs index 128bddc..0c5b5a3 100644 --- a/FastGithub.HttpServer/CaCertInstallerOfLinux.cs +++ b/FastGithub.HttpServer/CaCertInstallerOfLinux.cs @@ -59,6 +59,10 @@ namespace FastGithub.HttpServer try { Directory.CreateDirectory(this.CaCertStorePath); + foreach (var item in Directory.GetFiles(this.CaCertStorePath, "fastgithub.*")) + { + File.Delete(item); + } File.Copy(caCertFilePath, destCertFilePath, overwrite: true); Process.Start(this.CaCertUpdatePath).WaitForExit(); this.logger.LogInformation($"已自动向系统安装CA证书{caCertFilePath}");