I'm trying to use the web-push node.js library to send a push-notification to a chrome browser.
after firing the
webpush.sendNotification(pushSubscription,payload)
method i get this response -
{ Error: unable to verify the first certificate
at Error (native)
at TLSSocket.<anonymous> (_tls_wrap.js:1060:38)
at emitNone (events.js:86:13)
at TLSSocket.emit (events.js:185:7)
at TLSSocket._finishInit (_tls_wrap.js:584:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:416:38) code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' }
i'm guessing it's a SSL issue? How can i test this library over localhost?
Thanks