mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-22 09:36:09 +08:00
修改生成的cer证书编码格式为utf8
This commit is contained in:
@@ -254,5 +254,21 @@
|
||||
"PayType": 1,
|
||||
"Remark": "",
|
||||
"PayTime": "2021-01-07 12:25:59"
|
||||
},
|
||||
{
|
||||
"Name": "素年",
|
||||
"Amount": 5,
|
||||
"OrderNumber": "",
|
||||
"PayType": 2,
|
||||
"Remark": "不闪退了。支持一下",
|
||||
"PayTime": "2021-01-08 22:37:11"
|
||||
},
|
||||
{
|
||||
"Name": "kingburial",
|
||||
"Amount": 1,
|
||||
"OrderNumber": "",
|
||||
"PayType": 2,
|
||||
"Remark": "不是很常用,但是切换账号就很方便。谢谢啦",
|
||||
"PayTime": "2021-01-08 10:16:04"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -24,7 +24,6 @@ namespace SteamTool.Proxy
|
||||
Convert.ToBase64String(@this.RawData, Base64FormattingOptions.InsertLineBreaks));
|
||||
builder.AppendLine("-----END CERTIFICATE-----");
|
||||
builder.AppendLine(Const.HOST_TAG);
|
||||
|
||||
return builder.ToString();
|
||||
}
|
||||
|
||||
@@ -33,7 +32,7 @@ namespace SteamTool.Proxy
|
||||
RSACryptoServiceProvider pkey = (RSACryptoServiceProvider)@this.PrivateKey;
|
||||
|
||||
AsymmetricCipherKeyPair keyPair = DotNetUtilities.GetRsaKeyPair(pkey);
|
||||
using TextWriter tw = new StreamWriter(Path.Combine(AppContext.BaseDirectory, @this.IssuerName.Name + ".key"));
|
||||
using TextWriter tw = new StreamWriter(Path.Combine(AppContext.BaseDirectory, @this.IssuerName.Name + ".key"), false, new UTF8Encoding(false));
|
||||
PemWriter pw = new PemWriter(tw);
|
||||
pw.WriteObject(keyPair.Private);
|
||||
tw.Flush();
|
||||
@@ -71,7 +70,7 @@ namespace SteamTool.Proxy
|
||||
Convert.ToBase64String(@this.Export(X509ContentType.Cert), Base64FormattingOptions.InsertLineBreaks));
|
||||
builder.AppendLine("-----END CERTIFICATE-----");
|
||||
|
||||
File.WriteAllText(pathOrName, builder.ToString(), Encoding.UTF8);
|
||||
File.WriteAllText(pathOrName, builder.ToString(), new UTF8Encoding(false));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -103,9 +103,9 @@ namespace SteamTools
|
||||
|
||||
GeneralSettings.Culture.Subscribe(x => ResourceService.Current.ChangeCulture(x)).AddTo(this);
|
||||
WindowService.Current.AddTo(this).Initialize();
|
||||
AuthService.Current.Initialize();
|
||||
ProxyService.Current.Initialize();
|
||||
SteamConnectService.Current.Initialize();
|
||||
AuthService.Current.Initialize();
|
||||
if (GeneralSettings.IsAutoCheckUpdate.Value)
|
||||
{
|
||||
AutoUpdateService.Current.CheckUpdate();
|
||||
|
||||
Reference in New Issue
Block a user