node-geckoboard-push icon indicating copy to clipboard operation
node-geckoboard-push copied to clipboard

CERT_UNTRUSTED error.

Open williamhrs opened this issue 11 years ago • 6 comments

Hi, when trying to make a simple test using the module I'm getting a CERT_UNTRUSTED error.

williamhrs avatar Jan 28 '15 12:01 williamhrs

hi @williamhrs you're going to need to give a bit more information here, what version of node are you running? Which OS? What were you trying to do? Which function are you calling? Can you give me a backtrace?

danjenkins avatar Jan 28 '15 14:01 danjenkins

I am seeing the same thing. Simple code:

var gecko = new Geckoboard({api_key: 'asdfasdfasdfasdfasdf'}); gecko.number('asdfasdfasdfasd').send({item:[{value:123, text:'test}]}, false, 'standard', done);

chriskinsman avatar Jan 30 '15 17:01 chriskinsman

Looks like an issue with https and the ca chain. If you add rejectUnauthorized: false to the options hash things go through but that is a bit sketchy

chriskinsman avatar Jan 30 '15 17:01 chriskinsman

hi @chriskinsman / @williamhrs , yes, it looks like geckoboard has done something with their SSL certs, or a version of node has changed something... can you please tell me what version of node you are running?

You could either add rejectUnauthorized or look at using https://github.com/coolaj86/node-ssl-root-cas which would help aleviate the issue, maybe

This isn't an issue with the library so I'm going to close the issue. Please re-open if you feel it is an issue with the library and not geckoboard's SSL or Node.js

danjenkins avatar Jan 30 '15 20:01 danjenkins

There is no way to set rejectUnauthorized without modifying the library. I will perhaps figure out a pull request for that.

On Fri, Jan 30, 2015 at 12:06 PM, Dan Jenkins [email protected] wrote:

hi @chriskinsman https://github.com/chriskinsman / @williamhrs https://github.com/williamhrs , yes, it looks like geckoboard has done something with their SSL certs, or a version of node has changed something... can you please tell me what version of node you are running?

You could either add rejectUnauthorized or look at using https://github.com/coolaj86/node-ssl-root-cas which would help aleviate the issue, maybe

This isn't an issue with the library so I'm going to close the issue. Please re-open if you feel it is an issue with the library and not geckoboard's SSL or Node.js

— Reply to this email directly or view it on GitHub https://github.com/danjenkins/node-geckoboard-push/issues/14#issuecomment-72262248 .

chriskinsman avatar Jan 30 '15 20:01 chriskinsman

Ah ok! that makes sense, I'll re-open the issue then

danjenkins avatar Jan 30 '15 20:01 danjenkins