c# - Postman 错误 : "Unable to verify the first certificate" when try to get from my .net core api

标签 c# api .net-core postman

我有我全新的 .NET Core 服务和 API,我想获取其中的项目列表。它托管在本地主机上,我总是有这个错误:

16 ms
Warning: Unable to verify the first certificate
Network
Request Headers
User-Agent: PostmanRuntime/7.26.8
Accept: */*
Postman-Token: e64e10c3-8e3a-4b47-9427-d994e2bdc9fd
Host: localhost:44397
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Request Body
Response Headers
Transfer-Encoding: chunked
Server: Microsoft-IIS/10.0
X-Powered-By: ASP.NET
Date: Tue, 19 Ja

n 2021 14:06:14 GMT
Response Body
如何解决?我禁用/启用 SSL 认证,但没有帮助。

最佳答案

有 3 个地方可以禁用 ssl 验证:

  • 请求级别:确保关闭

  • enter image description here
  • 全局级别:(请求级别优先)

  • enter image description here
  • 删除客户端和 CA 证书,将其关闭:

  • enter image description here

    关于c# - Postman 错误 : "Unable to verify the first certificate" when try to get from my .net core api,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65793225/

    相关文章:

    c# - 将数据从 ASP.NET Web 应用程序插入到 SQL Server

    c# - XAttribute 不知道兄弟 XAttribute which IsNamespaceDeclaration

    image - 如何在 React Native 中显示来自 API 的图像?

    c# - 加密 JWT 安全 token 支持的算法

    c# - 将.net应用程序移动到新服务器时出现SQL Server连接错误

    javascript - 将 Javascript 对象转换为 C# 对象

    rest - mailchimp3 (Python-mailchimp-api) 如何设置标签

    api - 使用 Keycloak REST API 创建客户端时出现未知错误

    c# - SemaphoreSlim 使用限制

    .net-core - 是否可以在 Raspberry PI 上运行 .NET Core?