Skip to content

Commit

Permalink
🐛 修复证书过期后加速失效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
luojunyuan committed Nov 22, 2024
1 parent 774e758 commit a177eeb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ bool IsCertificateInstalled()
// 生成证书
certificateManager.GenerateCertificate();

var newPackable = GetRootCertificatePackable();
certificate2 = newPackable;
if (certificate2 == null)
return StartProxyResultCode.GetX509Certificate2Fail;

// 安装证书
ICertificateManager.Constants.TrustRootCertificate(
GetCerFilePath, platformService, certificate2);
Expand Down

0 comments on commit a177eeb

Please sign in to comment.