{"action":"created","issue":{"url":"https://api.github.com/repos/grpc/grpc/issues/3360","labels_url":"https://api.github.com/repos/grpc/grpc/issues/3360/labels{/name}","comments_url":"https://api.github.com/repos/grpc/grpc/issues/3360/comments","events_url":"https://api.github.com/repos/grpc/grpc/issues/3360/events","html_url":"https://github.com/grpc/grpc/issues/3360","id":106898261,"number":3360,"title":"OpenSSL: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol","user":{"login":"brennan-si","id":14283271,"avatar_url":"https://avatars.githubusercontent.com/u/14283271?v=3","gravatar_id":"","url":"https://api.github.com/users/brennan-si","html_url":"https://github.com/brennan-si","followers_url":"https://api.github.com/users/brennan-si/followers","following_url":"https://api.github.com/users/brennan-si/following{/other_user}","gists_url":"https://api.github.com/users/brennan-si/gists{/gist_id}","starred_url":"https://api.github.com/users/brennan-si/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brennan-si/subscriptions","organizations_url":"https://api.github.com/users/brennan-si/orgs","repos_url":"https://api.github.com/users/brennan-si/repos","events_url":"https://api.github.com/users/brennan-si/events{/privacy}","received_events_url":"https://api.github.com/users/brennan-si/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/grpc/grpc/labels/question","name":"question","color":"800080"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-17T02:10:25Z","updated_at":"2015-09-19T01:02:53Z","closed_at":null,"body":"I'm wanting to see about developing a plain JS version the grpc protocol without all the binary dependencies (they are not compatible, difficult to install, and give segfault / bus errors on OS X intermittently).\r\n\r\nI'm trying to connect to a grpc server through HTTP2 directly.  I have tried a few methods:\r\n\r\nEvery time I get the error:\r\n\r\n    OpenSSL: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol\r\n\r\nI have tried with `openssl s_client -connect`, `wget https://...`, and with node through the `node-http2` module.  They all give the same error.  Can someone provide some background as to what is going on here?  It seems to have something to do with there not being a valid cert on the grpc server side as far as I can tell but not sure how to get around that.\r\n\r\nHere is the output from `openssl s_client -connect -debug`:\r\n\r\n    139641528207008:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:795:\r\n    ---\r\n    no peer certificate available\r\n    ---\r\n    No client certificate CA names sent\r\n    ---\r\n    SSL handshake has read 7 bytes and written 295 bytes\r\n    ---\r\n    New, (NONE), Cipher is (NONE)\r\n    Secure Renegotiation IS NOT supported\r\n    Compression: NONE\r\n    Expansion: NONE\r\n    ---\r\n"},"comment":{"url":"https://api.github.com/repos/grpc/grpc/issues/comments/141605465","html_url":"https://github.com/grpc/grpc/issues/3360#issuecomment-141605465","issue_url":"https://api.github.com/repos/grpc/grpc/issues/3360","id":141605465,"user":{"login":"brennan-si","id":14283271,"avatar_url":"https://avatars.githubusercontent.com/u/14283271?v=3","gravatar_id":"","url":"https://api.github.com/users/brennan-si","html_url":"https://github.com/brennan-si","followers_url":"https://api.github.com/users/brennan-si/followers","following_url":"https://api.github.com/users/brennan-si/following{/other_user}","gists_url":"https://api.github.com/users/brennan-si/gists{/gist_id}","starred_url":"https://api.github.com/users/brennan-si/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brennan-si/subscriptions","organizations_url":"https://api.github.com/users/brennan-si/orgs","repos_url":"https://api.github.com/users/brennan-si/repos","events_url":"https://api.github.com/users/brennan-si/events{/privacy}","received_events_url":"https://api.github.com/users/brennan-si/received_events","type":"User","site_admin":false},"created_at":"2015-09-19T01:02:53Z","updated_at":"2015-09-19T01:02:53Z","body":"It's a custom server.  I was reading that there are some options to pass in CERT info.  That was not happening and might be part of the problem.  If so, it can simply be an issue of hooking up the certs.  I haven't verified this yet.  It is a server written in node 0.10.40.  I was just launching the server using `node server.js`.  The server seems to work with the grpc client connecting to it, but I can't connect to it with openssl or the node-http2 library due to the problem mentioned in the title of the issue."}}