ToothlessGear / node-gcm

A NodeJS wrapper library port to send data to Android devices via Google Cloud Messaging
https://github.com/ToothlessGear/node-gcm
Other
1.31k stars 206 forks source link

[Error: SELF_SIGNED_CERT_IN_CHAIN] #143

Closed pranaydutta89 closed 8 years ago

pranaydutta89 commented 9 years ago

I am using this plugin from my companies network ,which is behind proxy and getting error as [Error: SELF_SIGNED_CERT_IN_CHAIN] is there any way to disable the ssl ??

hypesystem commented 9 years ago

We do not have any option to do this at the moment, I'm sorry. It is very much the kind of thing that could be added, though.

I'll leave this issue open for discussion on that.

pranaydutta89 commented 9 years ago

do we have any hack as an alternative , i need this thing working for me

hypesystem commented 9 years ago

You can probably find a way to make the internal request object be insecure.

Here we set the options for it inside the Sender: https://github.com/ToothlessGear/node-gcm/blob/master/lib/sender.js#L44-L53

Here is the library with documentation: https://github.com/request/request

pranaydutta89 commented 9 years ago

thanks a ton will try it ,but i think this feature should be included in node-gcm

eladnava commented 8 years ago

@pranaydutta89 It is now possible to set custom request options such as strictSSL: false.