From 0ec47bc23aa126afeb64fa9222d88c91bd1b088a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E4=B9=9D?= <366193849@qq.com> Date: Sat, 13 Nov 2021 23:35:17 +0800 Subject: [PATCH] ca --- FastGithub.HttpServer/CaCertInstallerOfLinux.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FastGithub.HttpServer/CaCertInstallerOfLinux.cs b/FastGithub.HttpServer/CaCertInstallerOfLinux.cs index 75ce003..ae7eba0 100644 --- a/FastGithub.HttpServer/CaCertInstallerOfLinux.cs +++ b/FastGithub.HttpServer/CaCertInstallerOfLinux.cs @@ -49,7 +49,7 @@ namespace FastGithub.HttpServer if (Environment.UserName != "root") { - this.logger.LogWarning($"无法自动安装根证书{caCertFilePath},因为没有root权限"); + this.logger.LogWarning($"无法自动安装CA证书{caCertFilePath},因为没有root权限"); return; } @@ -58,12 +58,12 @@ namespace FastGithub.HttpServer Directory.CreateDirectory(this.CaCertStorePath); File.Copy(caCertFilePath, destCertFilePath, overwrite: true); Process.Start(this.CaCertUpdatePath).WaitForExit(); - this.logger.LogInformation($"已自动向系统安装根证书{caCertFilePath}"); + this.logger.LogInformation($"已自动向系统安装CA证书{caCertFilePath}"); } catch (Exception ex) { File.Delete(destCertFilePath); - this.logger.LogWarning(ex.Message, "自动安装证书异常"); + this.logger.LogWarning(ex.Message, "自动安装CA证书异常"); } } }