gpt4 book ai didi

c# - .NET Core 控制台应用程序 : The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot

转载 作者:行者123 更新时间:2023-12-05 02:38:25 41 4
gpt4 key购买 nike

我有一个 .NET Core 控制台应用程序,我正在尝试将 HttpRequest 发送到我的应用程序的本地运行版本。我正在从 Microsoft 向我们的身份验证端点发送带有身份验证 token 的 POST 请求,实际上只是尝试验证它。

对于每个请求,我都会遇到以下异常:由于证书链中的错误,远程证书无效:UntrustedRoot

我对证书了解不多,所以非常感谢这里的任何指导。

最佳答案

可以引用official link , 并尝试其中的命令。

dotnet dev-certs https --clean
dotnet dev-certs https --trust

关于c# - .NET Core 控制台应用程序 : The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69587783/

41 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com