grpc: Handshake read failed security_handshaker.c:126 (php client)

Hey… Trying to communicate with my service with php client (same service works for the golang client) Can’t make it work… already tried exporting the cipher suites

export GRPC_SSL_CIPHER_SUITES=ECDHE-ECDSA-AES256-GCM-SHA384
uire dirname(__FILE__).'/vendor/autoload.php';
 $client = new \Productpb\ProductServiceClient('localhost:3051', [
     'credentials' => Grpc\ChannelCredentials::createSsl(file_get_contents(dirname(__FILE__).'/client.com.pem'))
 ]);
$request = new Productpb\GetRequest();
$request->SetId("123");
var_dump($client->Get($request)->wait());
I0822 15:05:47.946677000    2059 ev_epollsig_linux.c:90]     epoll engine will be using signal: 40
D0822 15:05:47.947273600    2059 ev_posix.c:121]             Using polling engine: epollsig
D0822 15:05:47.947675000    2059 dns_resolver.c:316]         Using native dns resolver
I0822 15:05:48.041374600    2061 ssl_transport_security.c:184]      HANDSHAKE START -  before connect initialization  - CINIT
I0822 15:05:48.041807600    2061 ssl_transport_security.c:184]                 LOOP -  before connect initialization  - CINIT
I0822 15:05:48.042218500    2061 ssl_transport_security.c:184]                 LOOP -     SSLv3 write client hello A  - 3WCH_A
I0822 15:05:48.042570400    2061 ssl_transport_security.c:184]                 LOOP -               SSLv3 flush data  - 3FLUSH
D0822 15:06:08.043073400    2060 security_handshaker.c:126]  Security handshake failed: {"created":"@1503403568.042903200","description":"Handshake read failed","file":"/tmp/pear/temp/grpc/src/core/lib/security/transport/security_handshaker.c","file_line":304,"referenced_errors":[{"created":"@1503403568.042655500","description":"FD Shutdown","file":"/tmp/pear/temp/grpc/src/core/lib/iomgr/lockfree_event.c","file_line":197,"referenced_errors":[{"created":"@1503403568.042643600","description":"Handshake timed out","file":"/tmp/pear/temp/grpc/src/core/lib/channel/handshaker.c","file_line":241}]}]}
I0822 15:06:08.050053700    2060 subchannel.c:707]           Connect failed: {"created":"@1503403568.042903200","description":"Handshake read failed","file":"/tmp/pear/temp/grpc/src/core/lib/security/transport/security_handshaker.c","file_line":304,"referenced_errors":[{"created":"@1503403568.042655500","description":"FD Shutdown","file":"/tmp/pear/temp/grpc/src/core/lib/iomgr/lockfree_event.c","file_line":197,"referenced_errors":[{"created":"@1503403568.042643600","description":"Handshake timed out","file":"/tmp/pear/temp/grpc/src/core/lib/channel/handshaker.c","file_line":241}]}]}
I0822 15:06:08.050647900    2060 subchannel.c:501]           Retry immediately
I0822 15:06:08.051041400    2060 subchannel.c:453]           Failed to connect to channel, retrying
I0822 15:06:08.052902600    2060 ssl_transport_security.c:184]      HANDSHAKE START -  before connect initialization  - CINIT
I0822 15:06:08.054668900    2060 ssl_transport_security.c:184]                 LOOP -  before connect initialization  - CINIT
I0822 15:06:08.055249200    2060 ssl_transport_security.c:184]                 LOOP -     SSLv3 write client hello A  - 3WCH_A
I0822 15:06:08.056089100    2060 ssl_transport_security.c:184]                 LOOP -               SSLv3 flush data  - 3FLUSH
array(2) {
  [0]=>
  NULL
  [1]=>
  object(stdClass)#376 (3) {
    ["metadata"]=>
    array(0) {
    }
    ["code"]=>
    int(14)
    ["details"]=>
    string(14) "Connect Failed"
  }
}
D0822 15:06:08.094558300    2059 security_handshaker.c:126]  Security handshake failed: {"created":"@1503403568.094424700","description":"Handshake read failed","file":"/tmp/pear/temp/grpc/src/core/lib/security/transport/security_handshaker.c","file_line":304,"referenced_errors":[{"created":"@1503403568.094149800","description":"FD Shutdown","file":"/tmp/pear/temp/grpc/src/core/lib/iomgr/lockfree_event.c","file_line":197,"referenced_errors":[{"created":"@1503403568.094134800","description":"Subchannel disconnected","file":"/tmp/pear/temp/grpc/src/core/ext/filters/client_channel/subchannel.c","file_line":274}]}]}

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

same with 1.4.6