question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error in a working certificate: error:0906D06C:PEM routines:PEM_read_bio:no start line

See original GitHub issue

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.

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:closed
  • Created 9 years ago
  • Comments:14

github_iconTop GitHub Comments

8reactions
nickwcommented, Jan 29, 2015

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.

4reactions
nickwcommented, Jan 28, 2015

Nevermind guys, turned out to be a simple configuration issue for me.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found