{"action":"created","issue":{"url":"https://api.github.com/repos/nomad/houston/issues/94","labels_url":"https://api.github.com/repos/nomad/houston/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/nomad/houston/issues/94/comments","events_url":"https://api.github.com/repos/nomad/houston/issues/94/events","html_url":"https://github.com/nomad/houston/issues/94","id":70699271,"number":94,"title":"OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server session ticket A: tlsv1 alert unknown ca","user":{"login":"fahimbabarpatel","id":2698560,"avatar_url":"https://avatars.githubusercontent.com/u/2698560?v=3","gravatar_id":"","url":"https://api.github.com/users/fahimbabarpatel","html_url":"https://github.com/fahimbabarpatel","followers_url":"https://api.github.com/users/fahimbabarpatel/followers","following_url":"https://api.github.com/users/fahimbabarpatel/following{/other_user}","gists_url":"https://api.github.com/users/fahimbabarpatel/gists{/gist_id}","starred_url":"https://api.github.com/users/fahimbabarpatel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fahimbabarpatel/subscriptions","organizations_url":"https://api.github.com/users/fahimbabarpatel/orgs","repos_url":"https://api.github.com/users/fahimbabarpatel/repos","events_url":"https://api.github.com/users/fahimbabarpatel/events{/privacy}","received_events_url":"https://api.github.com/users/fahimbabarpatel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-24T14:05:47Z","updated_at":"2015-04-25T01:07:16Z","closed_at":"2015-04-25T01:07:16Z","body":"Hello All,\r\n\r\nI converted .p12 file to .pem file then executed below code \r\n\r\nrequire 'houston'\r\nAPN = Houston::Client.production\r\nAPN.timeout=10000\r\nAPN.certificate = File.read(\"apple_push_notification_production.pem\")\r\ntoken = \"tokenen247027fe250ace7e930d02ef9a49e4e33f526a4a39b5c2abf6f75629\"\r\nnotification = Houston::Notification.new(device: token)\r\nnotification.alert = \"Hello, World!\"\r\nnotification.badge = 57\r\nnotification.sound = \"sosumi.aiff\"\r\nnotification.category = \"INVITE_CATEGORY\"\r\nnotification.content_available = true\r\nnotification.custom_data = {foo: \"bar\"}\r\n\r\nAPN.push(notification)\r\n\r\n----------------------------\r\n## Getting below error:-\r\n\r\n---------------------\r\n\r\nOpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server session ticket A: tlsv1 alert unknown ca\r\n\tfrom /home/root1/.rvm/gems/ruby-2.2.2/gems/houston-2.2.3/lib/houston/connection.rb:44:in `connect'\r\n\tfrom /home/root1/.rvm/gems/ruby-2.2.2/gems/houston-2.2.3/lib/houston/connection.rb:44:in `open'\r\n\tfrom /home/root1/.rvm/gems/ruby-2.2.2/gems/houston-2.2.3/lib/houston/connection.rb:19:in `open'\r\n\tfrom /home/root1/.rvm/gems/ruby-2.2.2/gems/houston-2.2.3/lib/houston/client.rb:40:in `push'\r\n\tfrom (irb):15\r\n\tfrom /home/root1/.rvm/rubies/ruby-2.2.2/bin/irb:11:in `<main>'\r\n\r\n----------------------------------------------------------------------------------\r\n\r\n## After hitting APN.push(notification) some times even get below error \r\n\r\n------------------------------------\r\n\r\nErrno::ECONNRESET: Connection reset by peer - SSL_connect\r\n\r\n-------------------------------------\r\n\r\n### Machine configuration \r\n\r\nOS - Ubunto 12.04  LTS\r\nOpenSSL 1.0.1 14 Mar 2012\r\ngem --version  => 2.2.2\r\nrvm --version =>rvm 1.26.0 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]\r\n\r\n\r\nI am not sure where I am going wrong.\r\n\r\nThanks! in Advance.\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nomad/houston/issues/comments/96114413","html_url":"https://github.com/nomad/houston/issues/94#issuecomment-96114413","issue_url":"https://api.github.com/repos/nomad/houston/issues/94","id":96114413,"user":{"login":"mattt","id":7659,"avatar_url":"https://avatars.githubusercontent.com/u/7659?v=3","gravatar_id":"","url":"https://api.github.com/users/mattt","html_url":"https://github.com/mattt","followers_url":"https://api.github.com/users/mattt/followers","following_url":"https://api.github.com/users/mattt/following{/other_user}","gists_url":"https://api.github.com/users/mattt/gists{/gist_id}","starred_url":"https://api.github.com/users/mattt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattt/subscriptions","organizations_url":"https://api.github.com/users/mattt/orgs","repos_url":"https://api.github.com/users/mattt/repos","events_url":"https://api.github.com/users/mattt/events{/privacy}","received_events_url":"https://api.github.com/users/mattt/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T01:07:16Z","updated_at":"2015-04-25T01:07:16Z","body":"Cannot reproduce. This is almost certainly an issue with your firewall."}}