{"action":"created","issue":{"url":"https://api.github.com/repos/grpc/grpc/issues/6722","repository_url":"https://api.github.com/repos/grpc/grpc","labels_url":"https://api.github.com/repos/grpc/grpc/issues/6722/labels{/name}","comments_url":"https://api.github.com/repos/grpc/grpc/issues/6722/comments","events_url":"https://api.github.com/repos/grpc/grpc/issues/6722/events","html_url":"https://github.com/grpc/grpc/issues/6722","id":157152086,"number":6722,"title":"[Node.js] Handshake failed with fatal error SSL_ERROR_SSL: BAD_ECC_CERT","user":{"login":"jo3l33","id":19603866,"avatar_url":"https://avatars.githubusercontent.com/u/19603866?v=3","gravatar_id":"","url":"https://api.github.com/users/jo3l33","html_url":"https://github.com/jo3l33","followers_url":"https://api.github.com/users/jo3l33/followers","following_url":"https://api.github.com/users/jo3l33/following{/other_user}","gists_url":"https://api.github.com/users/jo3l33/gists{/gist_id}","starred_url":"https://api.github.com/users/jo3l33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jo3l33/subscriptions","organizations_url":"https://api.github.com/users/jo3l33/orgs","repos_url":"https://api.github.com/users/jo3l33/repos","events_url":"https://api.github.com/users/jo3l33/events{/privacy}","received_events_url":"https://api.github.com/users/jo3l33/received_events","type":"User","site_admin":false},"labels":[{"id":166332944,"url":"https://api.github.com/repos/grpc/grpc/labels/node","name":"node","color":"bfe5bf","default":false}],"state":"open","locked":false,"assignee":{"login":"murgatroid99","id":961599,"avatar_url":"https://avatars.githubusercontent.com/u/961599?v=3","gravatar_id":"","url":"https://api.github.com/users/murgatroid99","html_url":"https://github.com/murgatroid99","followers_url":"https://api.github.com/users/murgatroid99/followers","following_url":"https://api.github.com/users/murgatroid99/following{/other_user}","gists_url":"https://api.github.com/users/murgatroid99/gists{/gist_id}","starred_url":"https://api.github.com/users/murgatroid99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/murgatroid99/subscriptions","organizations_url":"https://api.github.com/users/murgatroid99/orgs","repos_url":"https://api.github.com/users/murgatroid99/repos","events_url":"https://api.github.com/users/murgatroid99/events{/privacy}","received_events_url":"https://api.github.com/users/murgatroid99/received_events","type":"User","site_admin":false},"assignees":[{"login":"murgatroid99","id":961599,"avatar_url":"https://avatars.githubusercontent.com/u/961599?v=3","gravatar_id":"","url":"https://api.github.com/users/murgatroid99","html_url":"https://github.com/murgatroid99","followers_url":"https://api.github.com/users/murgatroid99/followers","following_url":"https://api.github.com/users/murgatroid99/following{/other_user}","gists_url":"https://api.github.com/users/murgatroid99/gists{/gist_id}","starred_url":"https://api.github.com/users/murgatroid99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/murgatroid99/subscriptions","organizations_url":"https://api.github.com/users/murgatroid99/orgs","repos_url":"https://api.github.com/users/murgatroid99/repos","events_url":"https://api.github.com/users/murgatroid99/events{/privacy}","received_events_url":"https://api.github.com/users/murgatroid99/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/grpc/grpc/milestones/45","html_url":"https://github.com/grpc/grpc/milestones/1.1","labels_url":"https://api.github.com/repos/grpc/grpc/milestones/45/labels","id":1845911,"number":45,"title":"1.1","description":"Soon after GA.","creator":{"login":"nathanielmanistaatgoogle","id":10131044,"avatar_url":"https://avatars.githubusercontent.com/u/10131044?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanielmanistaatgoogle","html_url":"https://github.com/nathanielmanistaatgoogle","followers_url":"https://api.github.com/users/nathanielmanistaatgoogle/followers","following_url":"https://api.github.com/users/nathanielmanistaatgoogle/following{/other_user}","gists_url":"https://api.github.com/users/nathanielmanistaatgoogle/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanielmanistaatgoogle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanielmanistaatgoogle/subscriptions","organizations_url":"https://api.github.com/users/nathanielmanistaatgoogle/orgs","repos_url":"https://api.github.com/users/nathanielmanistaatgoogle/repos","events_url":"https://api.github.com/users/nathanielmanistaatgoogle/events{/privacy}","received_events_url":"https://api.github.com/users/nathanielmanistaatgoogle/received_events","type":"User","site_admin":false},"open_issues":205,"closed_issues":43,"state":"open","created_at":"2016-06-23T17:58:55Z","updated_at":"2016-11-21T18:02:44Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2016-05-27T08:06:46Z","updated_at":"2016-11-21T18:06:04Z","closed_at":null,"body":"Hello, \nI am trying to connect from node.js script to external grpc API using TLS with self signed cert (please see below) but during the handshake grpc terminates with following error:\n\n```\nE0527 09:49:28.689000000  4712 ssl_transport_security.c:945] Handshake failed with fatal error SSL_ERROR_SSL: error:1000006b:SSL routines:OPENSSL_internal:BA\nD_ECC_CERT.\nE0527 09:49:28.689000000  4712 handshake.c:241] Handshake failed with error TSI_PROTOCOL_FAILURE\nE0527 09:49:28.689000000  4712 secure_channel_create.c:99] Secure handshake failed with error 1.\n{ [Error] code: 14, metadata: Metadata { _internal_repr: {} } }\n```\n\nI am running `Node.js (v.4.4.5 LTS)` under `win 7 (x64bit)` with `GRPC package (v. 0.14.1)` installed via `npm install grpc --save`.\n\nThe script I am running is this:\n\n```\nvar fs = require('fs');\nvar path = require('path');\nvar os = require('os');\n\nprocess.env['GRPC_SSL_CIPHER_SUITES'] = 'HIGH+ECDSA';\n\nvar grpc = require('grpc');\nvar protoDescriptor = grpc.load('./api.proto');\nvar walletrpc = protoDescriptor.walletrpc;\n\nvar cert = fs.readFileSync('rpc.cert');\nvar creds = grpc.credentials.createSsl(cert);\nvar client = new walletrpc.WalletService('127.0.0.1:9110', creds);\n\nvar request = {\n    account_number: 0,\n    required_confirmations: 1\n};\nclient.balance(request, function(err, response) {\n    if (err) {\n        console.error(err);\n    } else {\n        console.log('Spendable balance:', response.spendable);\n    }\n})\n```\n\nCertificate file is standard certificate:\n\n`-----BEGIN CERTIFICATE-----\nMIICkzCCAfWgAwIBAgIRAMtVW1yCGKIrJBcbmqYVu3owCgYIKoZIzj0EAwQwPDEl\nMCMGA1UEChMcZGNyd2FsbGV0IGF1dG9nZW5lcmF0ZWQgY2VydDETMBEGA1UEAxMK\nbm9uYW1lMi1QQzAeFw0xNjA0MjUyMTIwMTJaFw0yNjA0MjQyMTIwMTJaMDwxJTAj\nBgNVBAoTHGRjcndhbGxldCBhdXRvZ2VuZXJhdGVkIGNlcnQxEzARBgNVBAMTCm5v\nbmFtZTItUEMwgZswEAYHKoZIzj0CAQYFK4EEACMDgYYABAASZVcgIuql7ho9aGv0\nX0DuHVcAKBmBbegMi7fPbaXRNmIDFQ3XKaj/lbNGYXX5AyEhaTckZQn0KZip6onh\nqG2SFgEpy4uaUULC84m5axEX21X4c74moLHkbklYkRQWRRIBfVqfKPc0QUPUwn7r\nPQnmAUARq9Nndlh8EDTEGZATSU3gYKOBlDCBkTAOBgNVHQ8BAf8EBAMCAqQwDwYD\nVR0TAQH/BAUwAwEB/zBuBgNVHREEZzBlggpub25hbWUyLVBDgglsb2NhbGhvc3SH\nBH8AAAGHEAAAAAAAAAAAAAAAAAAAAAGHBMCoAWSHEP6AAAAAAAAArEkF3rly3muH\nBAoEE9KHEP6AAAAAAAAA/XXG85N81M+HBMCoOAEwCgYIKoZIzj0EAwQDgYsAMIGH\nAkIBX6FOBzDM0kUGIXNfNljng0T4aIk/xCHACdSa56iaqQxM25CmZSri2lT0rMIV\nWX7FcrQLYUN3GXMy4nmTGOwG2mgCQUhutDgUjTslkie+5QM9HGAtNKg09e9yGyQ0\nNYR99j5FNVmNvvS3kRF33XncGvundj21SEKWo/ykYMpIWYW8F/fl\n-----END CERTIFICATE-----`\n\nPlease help me with this error - where is the problem/how  should I debug it ? Is it cert problem - GRPC problem ?\nThank you very much in advance for any help!\n"},"comment":{"url":"https://api.github.com/repos/grpc/grpc/issues/comments/262018335","html_url":"https://github.com/grpc/grpc/issues/6722#issuecomment-262018335","issue_url":"https://api.github.com/repos/grpc/grpc/issues/6722","id":262018335,"user":{"login":"murgatroid99","id":961599,"avatar_url":"https://avatars.githubusercontent.com/u/961599?v=3","gravatar_id":"","url":"https://api.github.com/users/murgatroid99","html_url":"https://github.com/murgatroid99","followers_url":"https://api.github.com/users/murgatroid99/followers","following_url":"https://api.github.com/users/murgatroid99/following{/other_user}","gists_url":"https://api.github.com/users/murgatroid99/gists{/gist_id}","starred_url":"https://api.github.com/users/murgatroid99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/murgatroid99/subscriptions","organizations_url":"https://api.github.com/users/murgatroid99/orgs","repos_url":"https://api.github.com/users/murgatroid99/repos","events_url":"https://api.github.com/users/murgatroid99/events{/privacy}","received_events_url":"https://api.github.com/users/murgatroid99/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T18:06:04Z","updated_at":"2016-11-21T18:06:04Z","body":"It looks like some files may have been added or removed in BoringSSL. If that is the case, you should be able to run `tools/buildgen/generate_projects.sh` to regenerate `package.json`."}}
{"actor":{"display_login":"murgatroid99"}}