BeyondDimension / SteamTools

🛠「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。
https://steampp.net
GNU General Public License v3.0
20.24k stars 1.32k forks source link

🧐[Question] 最近使用时,无法安装证书 #3453

Open Shoiyu7746 opened 2 months ago

Shoiyu7746 commented 2 months ago

请认真检查以下清单中的每一项

🧐 问题描述

安装证书时,显示无法安装CA证书,打开证书所在文件夹,并没有找到证书

🚑 其他信息

截屏2024-08-21 下午9 11 56 截屏2024-08-21 下午9 11 42 截屏2024-08-21 下午9 11 36
Mossimos commented 2 months ago

https://steampp.net/liunxSetupCer 在 Watt Toolkit 的设置 - 通用设置 - 存储空间 - 打开 AppData 目录中的 Plugins/Accelerator 目录下

Shoiyu7746 commented 2 months ago

https://steampp.net/liunxSetupCer 在 Watt Toolkit 的设置 - 通用设置 - 存储空间 - 打开 AppData 目录中的 Plugins/Accelerator 目录下

就是说那里没有啊( 已经尝试用虚拟机安装Windows把证书塞进Plugins/Accelerator 目录下了

Mossimos commented 2 months ago

程序日志发一下

Shoiyu7746 commented 2 months ago

程序日志发一下

logs数据是吗? nlog-all-2024-08-31.log

Mossimos commented 2 months ago

这个日志说明没有权限操作 Host 文件 你打开日志文件夹 里面有加速的英文的文件夹里面日志发下

Shoiyu7746 commented 2 months ago

nlog-all-2024-08-31.log

这个日志说明没有权限操作 Host 文件 你打开日志文件夹 里面有加速的英文的文件夹里面日志发下

Mossimos commented 2 months ago

The specified item is no longer valid. It may have been deleted from the keychain. 证书是已经被删除了 你目录下应该是有证书的 image 在这个目录你找下

Shoiyu7746 commented 2 months ago

以前没有,后面用虚拟机把证书搞过来就有了

Mossimos commented 2 months ago

删除 重启程序 然后点加速应该会自动生成新证书

Shoiyu7746 commented 2 months ago

Shoiyu7746 commented 2 months ago

并没有

删除 重启程序 然后点加速应该会自动生成新证书

Mossimos commented 2 months ago

有时间吗 你去官网加交流反馈群 然后在群里找我我远控你电脑看看

Shoiyu7746 commented 2 months ago

Mossimos commented 1 month ago

https://github.com/dotnet/announcements/issues/324 等这个问题被微软关闭就能修复这个错误了

deathxlent commented 1 month ago

升级完macos 15之后就无法加速了,应该就是上面dotnet证书相关问题

  1. 如果是全删除重新安装的话,生成不了证书。
  2. 用其他机器生成证书导入的话,一开始可以用,但很快就会像下面这样报错,之后所有的加速测试都变成了error

2024-09-19 17:39:13.341|Error|Microsoft.AspNetCore.Server.Kestrel|Unhandled exception while processing 0HN6OGDOCC2GS.| Interop+AppleCrypto+AppleCommonCryptoCryptographicException: The specified item is no longer valid. It may have been deleted from the keychain. at System.Security.Cryptography.X509Certificates.AppleCertificatePal.CopyWithPrivateKey(SafeSecKeyRefHandle privateKey) at System.Security.Cryptography.X509Certificates.AppleCertificatePal.CopyWithPrivateKey(RSA privateKey) at System.Security.Cryptography.X509Certificates.RSACertificateExtensions.CopyWithPrivateKey(X509Certificate2 certificate, RSA privateKey) at BD.WTTS.Services.Implementation.CertGenerator.CreateEndCertificate(X509Certificate2 issuerCertificate, X500DistinguishedName subjectName, IEnumerable1 extraDnsNames, Nullable1 notBefore, Nullable1 notAfter, Int32 rsaKeySizeInBits) at BD.WTTS.Services.Implementation.CertService.<>c__DisplayClass12_0.<GetOrCreateServerCert>g__GetOrCreateCert|0(ICacheEntry entry) at Microsoft.Extensions.Caching.Memory.CacheExtensions.GetOrCreate[TItem](IMemoryCache cache, Object key, Func2 factory) at BD.WTTS.Services.Implementation.CertService.GetOrCreateServerCert(String domain) at Microsoft.Extensions.DependencyInjection.ListenOptionsExtensions.<>cDisplayClass1_0.b3(TlsHandshakeCallbackContext ctx) at Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware.ServerOptionsCallback(SslStream sslStream, SslClientHelloInfo clientHelloInfo, Object state, CancellationToken cancellationToken) at System.Net.Security.SslStream.ReceiveHandshakeFrameAsync[TIOAdapter](CancellationToken cancellationToken) at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware.OnConnectionAsync(ConnectionContext context) at BD.WTTS.Services.Implementation.TlsInvadeMiddleware.InvokeAsync(ConnectionDelegate next, ConnectionContext context) at Microsoft.Extensions.DependencyInjection.ListenOptionsExtensions.<>cDisplayClass0_1.<b1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.Extensions.DependencyInjection.ListenOptionsExtensions.<>c__DisplayClass0_1.<b__1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelConnection`1.ExecuteAsync()

Mossimos commented 1 month ago

macos 15 目前是已知的预览版 不能使用 等待微软修复 底层API改动 要用就降级回 14