{"id":7928,"date":"2015-11-10T12:06:57","date_gmt":"2015-11-10T12:06:57","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/11\/10\/apns-ssl-gateway-sandbox-push-apple-com2195-connection-fails-open-source-projects-anachronistic-apns\/"},"modified":"2015-11-10T12:06:57","modified_gmt":"2015-11-10T12:06:57","slug":"apns-ssl-gateway-sandbox-push-apple-com2195-connection-fails-open-source-projects-anachronistic-apns","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/11\/10\/apns-ssl-gateway-sandbox-push-apple-com2195-connection-fails-open-source-projects-anachronistic-apns\/","title":{"rendered":"APNS ssl:\/\/gateway.sandbox.push.apple.com:2195 connection fails-open source projects anachronistic\/apns"},"content":{"rendered":"<p>i try to make a push-notification server. I get connection to ssl:\/\/gateway.sandbox.push.apple.com:2195 with telnet.<\/p>\n<pre><code>telnet gateway.sandbox.push.apple.com 2195\nTrying 17.172.232.229...\nConnected to gateway.sandbox.push-apple.com.akadns.net.\nEscape character is '^]'.\n<\/code><\/pre>\n<p>my *.pem is ok (I use it on another server). I use the SAME project on an other Server and it works there but the clone on an other Server doesn&#8217;t.<\/p>\n<p>I get these Errors:<\/p>\n<pre><code>Warning: stream_socket_client() [function.stream-socket-client]: SSL operation failed with code 1. OpenSSL Error messages: error:14094415:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate expired in \/var\/www\/try.php on line 69\n\nWarning: stream_socket_client() [function.stream-socket-client]: Failed to enable crypto in \/var\/www\/try.php on line 69\n\nWarning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl:\/\/gateway.sandbox.push.apple.com:2195 (Unknown error) in \/var\/www\/try.php on line 69\n<\/code><\/pre>\n<p>The certificate is NOT expired, it works on the other Server and the date is the same.<\/p>\n<p>Does someone has a clue what the mistake could be?<\/p>\n<p>I work on<\/p>\n<pre><code>Apache\/2.2.9 (Debian) PHP\/5.2.17-0.dotdeb.0 with Suhosin-Patch mod_ssl\/2.2.9 OpenSSL\/0.9.8g\n<\/code><\/pre>\n<p>EDIT: It seems, that using the same certificate on different servers doesn&#8217;t work. Maybe this is blocked by Apples servers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>i try to make a push-notification server. I get connection to ssl:\/\/gateway.sandbox.push.apple.com:2195 with telnet. telnet gateway.sandbox.push.apple.com 2195 Trying 17.172.232.229&#8230; Connected to gateway.sandbox.push-apple.com.akadns.net. Escape character is &#8216;^]&#8217;. my *.pem is ok (I use it on another server). I use the SAME project on an other Server and it works there but the clone on an other [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7928","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7928"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7928\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}