删除历史手工安装的证书
This commit is contained in:
parent
bcc0556fd0
commit
684bebd334
@ -59,6 +59,10 @@ namespace FastGithub.HttpServer
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
Directory.CreateDirectory(this.CaCertStorePath);
|
Directory.CreateDirectory(this.CaCertStorePath);
|
||||||
|
foreach (var item in Directory.GetFiles(this.CaCertStorePath, "fastgithub.*"))
|
||||||
|
{
|
||||||
|
File.Delete(item);
|
||||||
|
}
|
||||||
File.Copy(caCertFilePath, destCertFilePath, overwrite: true);
|
File.Copy(caCertFilePath, destCertFilePath, overwrite: true);
|
||||||
Process.Start(this.CaCertUpdatePath).WaitForExit();
|
Process.Start(this.CaCertUpdatePath).WaitForExit();
|
||||||
this.logger.LogInformation($"已自动向系统安装CA证书{caCertFilePath}");
|
this.logger.LogInformation($"已自动向系统安装CA证书{caCertFilePath}");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user