![](/img/trans.png)
[英].NET Core: How to disable TLS/SSL for gRpc communication between service and client?
[英].net gRPC service without TLS
我尝试在 .NET 6 中创建 gRPC 服务。
我成功地创建了一个简单的服务,该服务公开了一个返回字符串的简单端点。
With the gRPC service, I have the classic web api expose on http and https (http://localhost:51653; https://localhost:71653)
我尝试使用 Postman 在 https 端口(71563)上调用 gRPC 并且响应正常,但是如果我尝试通过不安全的端口(51653)调用 gRPC 服务,我在 Z46F061E1765E27 中有此错误:
Received RST_STREAM with code 2 triggered by internal client error: Protocol error
现在我想在没有 TLS 的情况下调用 gRPC 端点。
可能吗?
谢谢
在最新版本的 Postman 中,您应该看到与 URL 输入相邻的 TLS 切换。 参考这里:
https://learning.postman.com/docs/sending-requests/certificates/#troubleshooting-certificate-errors
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.