Skip to content

Commit 0ec47bc

Browse files
committed
ca
1 parent e913983 commit 0ec47bc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

FastGithub.HttpServer/CaCertInstallerOfLinux.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void Install(string caCertFilePath)
4949

5050
if (Environment.UserName != "root")
5151
{
52-
this.logger.LogWarning($"无法自动安装根证书{caCertFilePath},因为没有root权限");
52+
this.logger.LogWarning($"无法自动安装CA证书{caCertFilePath},因为没有root权限");
5353
return;
5454
}
5555

@@ -58,12 +58,12 @@ public void Install(string caCertFilePath)
5858
Directory.CreateDirectory(this.CaCertStorePath);
5959
File.Copy(caCertFilePath, destCertFilePath, overwrite: true);
6060
Process.Start(this.CaCertUpdatePath).WaitForExit();
61-
this.logger.LogInformation($"已自动向系统安装根证书{caCertFilePath}");
61+
this.logger.LogInformation($"已自动向系统安装CA证书{caCertFilePath}");
6262
}
6363
catch (Exception ex)
6464
{
6565
File.Delete(destCertFilePath);
66-
this.logger.LogWarning(ex.Message, "自动安装证书异常");
66+
this.logger.LogWarning(ex.Message, "自动安装CA证书异常");
6767
}
6868
}
6969
}

0 commit comments

Comments
 (0)