Error in a working certificate: error:0906D06C:PEM routines:PEM_read_bio:no start line
See original GitHub issueI’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.
Certificate Test:
openssl s_client -connect gateway.push.apple.com:2195 -cert certdist.pem -key keydist.pem
CONNECTED(00000003)
Exception
Error: error:0906D06C:PEM routines:PEM_read_bio:no start line
at Object.exports.createCredentials (crypto.js:129:17)
at apnSocketLegacy (/app/node_modules/apn/lib/socket.js:40:19)
at Connection.initialize.spread.fail.terminated (/app/node_modules/apn/lib/connec
at /app/node_modules/apn/node_modules/q/q.js:1171:26
at _fulfilled (/app/node_modules/apn/node_modules/q/q.js:794:54)
at self.promiseDispatch.done (/app/node_modules/apn/node_modules/q/q.js:823:30)
at Promise.promise.promiseDispatch (/app/node_modules/apn/node_modules/q/q.js:756
at /app/node_modules/apn/node_modules/q/q.js:516:49
at flush (/app/node_modules/apn/node_modules/q/q.js:110:17)
This is happening when called from:
apnConnection.pushNotification(note, tokens);
Ideas?
Issue Analytics
- State:
- Created 9 years ago
- Comments:14
Top Results From Across the Web
Error 0906D06C:PEM routines:PEM_read_bio:no start line ...
Description Configuration does not load when upgrading to 11.6.5.2. Next error is prompted after some minutes of a failing configuration loading ...
Read more >error:0906D06C:PEM routines:PEM_read_bio:no start line ...
I am trying to use godaddy ssl certificates on ...
Read more >SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line
Ensure the beginning and end certificate statements are on there own line and have the same number of '-' at each end.
Read more >SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line
Hi, like every sunday a cronjob creating dhparam certificates was successfully done, but the all 4 .pem(s) in /etc/dhparam are empty with 0 ......
Read more >error:0906D06C:PEM routines:PEM_read_bio:no start line ...
It is safer to reinstall/restore a backup. If you are sure there no problems other than this missing file you can restore the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
My app is a Meteor app using the raix:push package which apparently uses your Node package under the hood. Our config file was just pointing to a cert instead of a key.
Nevermind guys, turned out to be a simple configuration issue for me.