duanlong4890 2016-12-08 11:40
浏览 172

从Node.js grpc客户端连接到在tls中启用的gopc中运行的grpc服务器

I have a grpc server written in go which is running in tls mode.

If I want to connect to the server from a nodejs client without verifying server's certificate chain and host name. How do I achieve that? (This is done by setting the InsecureSkipVerify Flag to true in tls Config in golang)

Default way to connect to a grpc server (not enabled in tls) is by using grpc.credentials.createInsecure() . but when I enable the server in tls mode and use grpc.credentials.createSsl() it gives me the following error log:

E1207 20:47:12.228100000 123145571782656 handshake.c:128] Security handshake failed: {"created":"@1481123832.228090000","description":"Handshake failed","file":"../src/core/lib/security/transport/handshake.c","file_line":264,"tsi_code":10,"tsi_error":"TSI_PROTOCOL_FAILURE"}

How do I get rid of this error and connect to the tls enabled grpc server without giving any certificates in the nodejs client??

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
    • ¥15 关于#Java#的问题,如何解决?
    • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
    • ¥15 想问一下树莓派接上显示屏后出现如图所示画面,是什么问题导致的
    • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
    • ¥15 cmd cl 0x000007b
    • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
    • ¥500 火焰左右视图、视差(基于双目相机)
    • ¥100 set_link_state
    • ¥15 虚幻5 UE美术毛发渲染