Certificate verify failed.

149 views
Skip to first unread message

Abhishek Reddy

unread,
Jul 14, 2022, 9:14:53 PM7/14/22
to grpc.io
Hi Team, 
  I am using a certificate signed by a intermediate ca, 
I have bundled the server.crt with intermediate ca and the rootca crt
I am using the server.crt as the client certificate as well.
Please advise 

Im getting this error.

 Grpc failed : 14 : Connect Failed cn_mismatch ? : 0 handshake failed ? : 1 debug error detail : {"created":"@1657846378.708581223","description":"Failed to create subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":2636,"referenced_errors":[{"created":"@1657846378.706455021","description":"Pick Cancelled","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":241,"referenced_errors":[{"created":"@1657846378.706407872","description":"Connect Failed","file":"src/core/ext/filters/client_channel/subchannel.cc","file_line":663,"grpc_status":14,"referenced_errors":[{"created":"@1657846378.706158793","description":"Handshake read failed","file":"src/core/lib/security/transport/security_handshaker.cc","file_line":321,"referenced_errors":[{"created":"@1657846378.706150457","description":"Socket closed","fd":35,"file":"src/core/lib/iomgr/tcp_posix.cc","file_line":425,"grpc_status":14,"target_address":"ipv4:172.16.10.31:10156"}]}]}]}]}

W0715 00:52:58.709195 28021 protorpc_client.cc:712] Underlying transport reported kTransportError for  protorpc_id=(3726108242716850180, 7) method=Proc3 server=172.16.10.31:34000 err_detail=Grpc server authentication failure.

I0715 00:52:58.709343 28021 protorpc_over_grpc_transport.cc:250] Grpc failed : 14 : Connect Failed cn_mismatch ? : 0 handshake failed ? : 1 debug error detail : {"created":"@1657846378.708674629","description":"Failed to create subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":2636,"referenced_errors":[{"created":"@1657846378.706455565","description":"Pick Cancelled","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":241,"referenced_errors":[{"created":"@1657846378.706407872","description":"Connect Failed","file":"src/core/ext/filters/client_channel/subchannel.cc","file_line":663,"grpc_status":14,"referenced_errors":[{"created":"@1657846378.706158793","description":"Handshake read failed","file":"src/core/lib/security/transport/security_handshaker.cc","file_line":321,"referenced_errors":[{"created":"@1657846378.706150457","description":"Socket closed","fd":35,"file":"src/core/lib/iomgr/tcp_posix.cc","file_line":425,"grpc_status":14,"target_address":"ipv4:172.16.10.31:10156"}] 

Zhen Lian

unread,
Jul 21, 2022, 11:30:41 AM7/21/22
to grpc.io
From the log it seems the application logic in "protorpc_client.cc" returned an error message. Can you please check if the error comes from that place?

If not, would you mind providing a code snippet on how you create your gRPC server? That might help me diagnose as well. Thank you!

Reply all
Reply to author
Forward
0 new messages