{"action":"created","issue":{"url":"https://api.github.com/repos/node-apn/node-apn/issues/446","repository_url":"https://api.github.com/repos/node-apn/node-apn","labels_url":"https://api.github.com/repos/node-apn/node-apn/issues/446/labels{/name}","comments_url":"https://api.github.com/repos/node-apn/node-apn/issues/446/comments","events_url":"https://api.github.com/repos/node-apn/node-apn/issues/446/events","html_url":"https://github.com/node-apn/node-apn/issues/446","id":182417003,"number":446,"title":"Cant connect to Apple APN Gateway","user":{"login":"lelandcope","id":4503835,"avatar_url":"https://avatars.githubusercontent.com/u/4503835?v=3","gravatar_id":"","url":"https://api.github.com/users/lelandcope","html_url":"https://github.com/lelandcope","followers_url":"https://api.github.com/users/lelandcope/followers","following_url":"https://api.github.com/users/lelandcope/following{/other_user}","gists_url":"https://api.github.com/users/lelandcope/gists{/gist_id}","starred_url":"https://api.github.com/users/lelandcope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lelandcope/subscriptions","organizations_url":"https://api.github.com/users/lelandcope/orgs","repos_url":"https://api.github.com/users/lelandcope/repos","events_url":"https://api.github.com/users/lelandcope/events{/privacy}","received_events_url":"https://api.github.com/users/lelandcope/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-12T02:01:43Z","updated_at":"2016-10-14T11:20:36Z","closed_at":null,"body":"I've tried every which way to export the cert but for some reason I am never able to connect. Im currently on v1.7.8 because this is an older app. When I startup the app I am getting the following error \r\n\r\n```\r\nAPN GATEWAY ERROR Error: 140735223549952:error:14094416:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate unknown:../deps/openssl/openssl/ssl/s3_pkt.c:1292:SSL alert number 46\r\n\r\n  at SlabBuffer.use (tls.js:235:18)\r\n  at CleartextStream.read [as _read] (tls.js:455:29)\r\n  at CleartextStream.Readable.read (_stream_readable.js:341:10)\r\n  at EncryptedStream.write [as _write] (tls.js:369:25)\r\n  at doWrite (_stream_writable.js:226:10)\r\n  at writeOrBuffer (_stream_writable.js:216:5)\r\n  at EncryptedStream.Writable.write (_stream_writable.js:183:11)\r\n  at write (_stream_readable.js:602:24)\r\n  at flow (_stream_readable.js:611:7)\r\n  at Socket.pipeOnReadable (_stream_readable.js:643:5)\r\n  at Socket.emit (events.js:92:17)\r\n  at emitReadable_ (_stream_readable.js:427:10)\r\n  at emitReadable (_stream_readable.js:423:5)\r\n  at readableAddChunk (_stream_readable.js:166:9)\r\n  at Socket.Readable.push (_stream_readable.js:128:10)\r\n  at TCP.onread (net.js:529:21)\r\n```\r\n\r\nI have tried googling the error and I can't seem to find a fix. In keychain it is saying my cert is valid. I am using an exported p12 from keychain. Any help you can give me would be amazing and thank you for your time."},"comment":{"url":"https://api.github.com/repos/node-apn/node-apn/issues/comments/253773972","html_url":"https://github.com/node-apn/node-apn/issues/446#issuecomment-253773972","issue_url":"https://api.github.com/repos/node-apn/node-apn/issues/446","id":253773972,"user":{"login":"florianreinhart","id":1730292,"avatar_url":"https://avatars.githubusercontent.com/u/1730292?v=3","gravatar_id":"","url":"https://api.github.com/users/florianreinhart","html_url":"https://github.com/florianreinhart","followers_url":"https://api.github.com/users/florianreinhart/followers","following_url":"https://api.github.com/users/florianreinhart/following{/other_user}","gists_url":"https://api.github.com/users/florianreinhart/gists{/gist_id}","starred_url":"https://api.github.com/users/florianreinhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florianreinhart/subscriptions","organizations_url":"https://api.github.com/users/florianreinhart/orgs","repos_url":"https://api.github.com/users/florianreinhart/repos","events_url":"https://api.github.com/users/florianreinhart/events{/privacy}","received_events_url":"https://api.github.com/users/florianreinhart/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T11:20:36Z","updated_at":"2016-10-14T11:20:36Z","body":"Maybe APNs rejects your client certificate. Please try the steps mentioned in the wiki [Preparing-Certificates](https://github.com/node-apn/node-apn/wiki/Preparing-Certificates)."}}
{"actor":{"display_login":"florianreinhart"}}