从nodejs grpc客户端连接到在tls中启用的grpc服务器

我有一个grpc服务器写在走在tls模式下运行。

如果我想从nodejs客户端连接到服务器而不validation服务器的证书链和主机名。 我如何做到这一点? (这是通过在golang中的tlsconfiguration中将InsecureSkipVerify标志设置为true来完成的)

连接grpc服务器的默认方式(tls中没有启用)是使用grpc.credentials.createInsecure()。 但是当我启用tls模式的服务器,并使用grpc.credentials.createSsl()它给了我下面的错误日志:

E1207 20:47:12.228100000 123145571782656 handshake.c:128]安全握手失败:{“created”:“@ 1481123832.228090000”,“description”:“Handshake failed”,“file”:“../ src / core / lib /安全/运输/ handshake.c”, “file_line”:264, “tsi_code”:10 “tsi_error”: “TSI_PROTOCOL_FAILURE”}

如何摆脱这个错误,并连接到tls启用grpc服务器,而无需在nodejs客户端中提供任何证书?