{"action":"created","issue":{"url":"https://api.github.com/repos/argon/node-apn/issues/234","labels_url":"https://api.github.com/repos/argon/node-apn/issues/234/labels{/name}","comments_url":"https://api.github.com/repos/argon/node-apn/issues/234/comments","events_url":"https://api.github.com/repos/argon/node-apn/issues/234/events","html_url":"https://github.com/argon/node-apn/issues/234","id":51524306,"number":234,"title":"Error in a working certificate: error:0906D06C:PEM routines:PEM_read_bio:no start line","user":{"login":"NizarBlond","id":2389428,"avatar_url":"https://avatars.githubusercontent.com/u/2389428?v=3","gravatar_id":"","url":"https://api.github.com/users/NizarBlond","html_url":"https://github.com/NizarBlond","followers_url":"https://api.github.com/users/NizarBlond/followers","following_url":"https://api.github.com/users/NizarBlond/following{/other_user}","gists_url":"https://api.github.com/users/NizarBlond/gists{/gist_id}","starred_url":"https://api.github.com/users/NizarBlond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NizarBlond/subscriptions","organizations_url":"https://api.github.com/users/NizarBlond/orgs","repos_url":"https://api.github.com/users/NizarBlond/repos","events_url":"https://api.github.com/users/NizarBlond/events{/privacy}","received_events_url":"https://api.github.com/users/NizarBlond/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-12-10T06:38:33Z","updated_at":"2015-08-29T03:40:40Z","closed_at":"2015-02-05T00:57:27Z","body":"I'm trying to send push notification to the server using PEM certs that I generated and tested on OPENSSL, but I keep getting exception that crashes my node app.\r\n\r\nCertificate Test:\r\n \r\n\topenssl s_client -connect gateway.push.apple.com:2195 -cert certdist.pem -key keydist.pem\r\n\tCONNECTED(00000003)\r\n\r\nException\r\n\r\n    Error: error:0906D06C:PEM routines:PEM_read_bio:no start line\r\n   \t\tat Object.exports.createCredentials (crypto.js:129:17)\r\n\t\tat apnSocketLegacy (/app/node_modules/apn/lib/socket.js:40:19)\r\n\t\tat Connection.initialize.spread.fail.terminated (/app/node_modules/apn/lib/connec\r\n\r\n\t\tat /app/node_modules/apn/node_modules/q/q.js:1171:26\r\n\t\tat _fulfilled (/app/node_modules/apn/node_modules/q/q.js:794:54)\r\n\t\tat self.promiseDispatch.done (/app/node_modules/apn/node_modules/q/q.js:823:30)\r\n\t\tat Promise.promise.promiseDispatch (/app/node_modules/apn/node_modules/q/q.js:756\r\n\r\n\t\tat /app/node_modules/apn/node_modules/q/q.js:516:49\r\n\t\tat flush (/app/node_modules/apn/node_modules/q/q.js:110:17)\r\n\r\nThis is happening when called from:\r\n\r\n        apnConnection.pushNotification(note, tokens);\r\n\r\nIdeas?\r\n"},"comment":{"url":"https://api.github.com/repos/argon/node-apn/issues/comments/135935628","html_url":"https://github.com/argon/node-apn/issues/234#issuecomment-135935628","issue_url":"https://api.github.com/repos/argon/node-apn/issues/234","id":135935628,"user":{"login":"sreenibellamkonda","id":14017319,"avatar_url":"https://avatars.githubusercontent.com/u/14017319?v=3","gravatar_id":"","url":"https://api.github.com/users/sreenibellamkonda","html_url":"https://github.com/sreenibellamkonda","followers_url":"https://api.github.com/users/sreenibellamkonda/followers","following_url":"https://api.github.com/users/sreenibellamkonda/following{/other_user}","gists_url":"https://api.github.com/users/sreenibellamkonda/gists{/gist_id}","starred_url":"https://api.github.com/users/sreenibellamkonda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sreenibellamkonda/subscriptions","organizations_url":"https://api.github.com/users/sreenibellamkonda/orgs","repos_url":"https://api.github.com/users/sreenibellamkonda/repos","events_url":"https://api.github.com/users/sreenibellamkonda/events{/privacy}","received_events_url":"https://api.github.com/users/sreenibellamkonda/received_events","type":"User","site_admin":false},"created_at":"2015-08-29T03:40:40Z","updated_at":"2015-08-29T03:40:40Z","body":"Hi , \r\ni am trying to install phonegap. but got the error could you please some help on this.\r\ni ran the below command \r\nnpm install -g phonegap\r\n\r\nError:\r\nC:\\Users\\bellamks>npm install -g phonegap\r\nnpm ERR! Windows_NT 6.1.7601\r\nnpm ERR! argv \"C:\\\\Program Files\\\\nodejs\\\\\\\\node.exe\" \"C:\\\\Program Files\\\\nodejs\r\n\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"install\" \"-g\" \"phonegap\"\r\nnpm ERR! node v0.12.7\r\nnpm ERR! npm  v2.11.3\r\n\r\nnpm ERR! error:0906D06C:PEM routines:PEM_read_bio:no start line\r\nnpm ERR!\r\nnpm ERR! If you need help, you may report this error at:\r\nnpm ERR!     <https://github.com/npm/npm/issues>\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     C:\\Users\\bellamks\\npm-debug.log\r\n\r\n"}}