{"action":"created","issue":{"url":"https://api.github.com/repos/emqtt/emqttd/issues/811","repository_url":"https://api.github.com/repos/emqtt/emqttd","labels_url":"https://api.github.com/repos/emqtt/emqttd/issues/811/labels{/name}","comments_url":"https://api.github.com/repos/emqtt/emqttd/issues/811/comments","events_url":"https://api.github.com/repos/emqtt/emqttd/issues/811/events","html_url":"https://github.com/emqtt/emqttd/issues/811","id":194345620,"number":811,"title":"Facing an Issue over SSL connection to the broker.","user":{"login":"sanket-kulkarni-vmware","id":20792152,"avatar_url":"https://avatars.githubusercontent.com/u/20792152?v=3","gravatar_id":"","url":"https://api.github.com/users/sanket-kulkarni-vmware","html_url":"https://github.com/sanket-kulkarni-vmware","followers_url":"https://api.github.com/users/sanket-kulkarni-vmware/followers","following_url":"https://api.github.com/users/sanket-kulkarni-vmware/following{/other_user}","gists_url":"https://api.github.com/users/sanket-kulkarni-vmware/gists{/gist_id}","starred_url":"https://api.github.com/users/sanket-kulkarni-vmware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanket-kulkarni-vmware/subscriptions","organizations_url":"https://api.github.com/users/sanket-kulkarni-vmware/orgs","repos_url":"https://api.github.com/users/sanket-kulkarni-vmware/repos","events_url":"https://api.github.com/users/sanket-kulkarni-vmware/events{/privacy}","received_events_url":"https://api.github.com/users/sanket-kulkarni-vmware/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"turtleDeng","id":1830077,"avatar_url":"https://avatars.githubusercontent.com/u/1830077?v=3","gravatar_id":"","url":"https://api.github.com/users/turtleDeng","html_url":"https://github.com/turtleDeng","followers_url":"https://api.github.com/users/turtleDeng/followers","following_url":"https://api.github.com/users/turtleDeng/following{/other_user}","gists_url":"https://api.github.com/users/turtleDeng/gists{/gist_id}","starred_url":"https://api.github.com/users/turtleDeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turtleDeng/subscriptions","organizations_url":"https://api.github.com/users/turtleDeng/orgs","repos_url":"https://api.github.com/users/turtleDeng/repos","events_url":"https://api.github.com/users/turtleDeng/events{/privacy}","received_events_url":"https://api.github.com/users/turtleDeng/received_events","type":"User","site_admin":false},"assignees":[{"login":"turtleDeng","id":1830077,"avatar_url":"https://avatars.githubusercontent.com/u/1830077?v=3","gravatar_id":"","url":"https://api.github.com/users/turtleDeng","html_url":"https://github.com/turtleDeng","followers_url":"https://api.github.com/users/turtleDeng/followers","following_url":"https://api.github.com/users/turtleDeng/following{/other_user}","gists_url":"https://api.github.com/users/turtleDeng/gists{/gist_id}","starred_url":"https://api.github.com/users/turtleDeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turtleDeng/subscriptions","organizations_url":"https://api.github.com/users/turtleDeng/orgs","repos_url":"https://api.github.com/users/turtleDeng/repos","events_url":"https://api.github.com/users/turtleDeng/events{/privacy}","received_events_url":"https://api.github.com/users/turtleDeng/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-12-08T14:12:56Z","updated_at":"2016-12-09T04:51:35Z","closed_at":null,"body":"#### Environment\r\n\r\n- OS: Cent6\r\n- Erlang/OTP: 19\r\n- EMQ: 2.0.2\r\n\r\n\r\nI am facing an issue to connect broker over SSL. I am getting following error message on the broker console logs,\r\n\r\n(emqttd@127.0.0.1)1> 19:34:33.892 [error] SSL: certify: ssl_alert.erl:97:Fatal error: unknown ca\r\n19:34:33.892 [error] CRASH REPORT Process <0.1206.0> with 0 neighbours crashed with reason: {ssl_error,{tls_alert,\"unknown ca\"}} in esockd_connection:upgrade/1 line 113\r\n\r\n19:34:33.892 [error] Supervisor 'esockd_connection_sup - <0.1163.0>' had child connection started with emqttd_client:start_link([{max_clientid_len,1024},{max_packet_size,65536},{client_idle_timeout,30}]) at <0.1206.0> exit with reason {ssl_error,{tls_alert,\"unknown ca\"}} in context connection_crashed\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/emqtt/emqttd/issues/comments/265933253","html_url":"https://github.com/emqtt/emqttd/issues/811#issuecomment-265933253","issue_url":"https://api.github.com/repos/emqtt/emqttd/issues/811","id":265933253,"user":{"login":"chimit","id":839349,"avatar_url":"https://avatars.githubusercontent.com/u/839349?v=3","gravatar_id":"","url":"https://api.github.com/users/chimit","html_url":"https://github.com/chimit","followers_url":"https://api.github.com/users/chimit/followers","following_url":"https://api.github.com/users/chimit/following{/other_user}","gists_url":"https://api.github.com/users/chimit/gists{/gist_id}","starred_url":"https://api.github.com/users/chimit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chimit/subscriptions","organizations_url":"https://api.github.com/users/chimit/orgs","repos_url":"https://api.github.com/users/chimit/repos","events_url":"https://api.github.com/users/chimit/events{/privacy}","received_events_url":"https://api.github.com/users/chimit/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T04:51:35Z","updated_at":"2016-12-09T04:51:35Z","body":"Having the similar problem on HTTP POST publishing over SSL.\r\n\r\n```\r\n(emqttd@127.0.0.1)1> 04:31:00.234 [error] Error in process <0.1124.0> on node 'emqttd@127.0.0.1' with exit value:\r\n{badarg,[{erlang,list_to_binary,[undefined],[]},{emqttd_http,http_publish,1,[{file,\"src/emqttd_http.erl\"},{line,94}]},{mochiweb_http,headers,5,[{file,\"src/mochiweb_http.erl\"},{line,75}]}]}\r\n04:31:00.234 [error] Supervisor 'esockd_connection_sup - <0.1097.0>' had child connection started with mochiweb_http:start_link({emqttd_http,handle_request,[]}) at <0.1124.0> exit with reason bad argument in call to erlang:list_to_binary(undefined) in emqttd_http:http_publish/1 line 94 in context connection_crashed\r\n```"}}
{"actor":{"display_login":"chimit"}}