.Net 应用程序从哪里获取其根 CA 证书?

发布于 2025-01-12 23:19:45 字数 253 浏览 3 评论 0原文

我正在尝试将 Charles Proxy 与 .Net 应用程序一起使用来了解其 API 调用。我已经安装了 Charles Proxy 根 CA 证书(该证书按基本操作系统服务和浏览器的预期工作),但是我正在运行的应用程序似乎无法识别该证书。

我已经反编译了该软件,它似乎正在使用标准的 System.Net.WebRequest 组件,并且不会覆盖 RemoteCertificateValidationCallback 。

这是在 Windows 10 上。

I am trying to use Charles Proxy with a .Net application to understand its API calls. I've installed the Charles Proxy root CA certificate (which is working as expected for base OS services and the browser), however the application I'm running doesn't seem to be recognizing that cert.

I've decompiled the software, and it seems to be using the standard System.Net.WebRequest component, and doesn't override RemoteCertificateValidationCallback.

This is on Windows 10.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

娇纵 2025-01-19 23:19:45

在 Windows 上,.NET 使用 Windows 证书信任系统;因此它的行为应该与 Edge 或 Chrome 相同(Firefox 使用自己的信任存储)。

On Windows, .NET uses the Windows certificate trust system; so it should behave the same as Edge or Chrome (Firefox uses their own trust store).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文