How to ignore SSL errors from "http request" node?

2,866 views
Skip to first unread message

Thomas Fotherby

unread,
May 1, 2015, 5:00:51 AM5/1/15
to node...@googlegroups.com

(I asked a question on stackoverflow and it was suggested I asked here instead - http://stackoverflow.com/questions/29973743/node-red-how-to-ignore-ssl-errors-from-http-request-node)

I'm trying to use node-red as a frontend to interface with a REST API that I'm building. My API uses https but on my local server the certificates aren't perfectly set up and when I try to use a "http request" node I get a error:

 UNABLE_TO_VERIFY_LEAF_SIGNATURE

Is there a way to configure node-red to be less strict and allow SSL protocol errors and proceed to process the http request? Did anyone create their own version of the "http request" node that is less strict than the default one?

(in the Google Chome browser I have a green padlock so SSL is nearly correct, node-red is being very picky)

----

To run node-red I use docker:

docker run -dp 1880:1880 -v ~/.node-red:/root/.node-red --name node-red cpswan/node-red

This is my node-red project sourcecode:

[{"id":"e246fcb9.1db9","type":"inject","name":"Trigger user/me","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":200,"y":140,"z":"e7bac913.184538","wires":[["f9d78108.06288"]]},{"id":"96b8b92c.694748","type":"http request","name":"user/me","method":"GET","ret":"obj","url":"https://local.supertasker.com/api/user/me","x":711,"y":141,"z":"e7bac913.184538","wires":[["5150419b.aeafc"]]},{"id":"5150419b.aeafc","type":"debug","name":"","active":true,"console":"false","complete":"false","x":906,"y":140,"z":"e7bac913.184538","wires":[]},{"id":"f9d78108.06288","type":"function","name":"Add 'Accept:application/json' header","func":"\nmsg.headers = {\n    'Accept':'application/json'\n};\n\n// Return the message so it can be sent on\nreturn msg;","outputs":1,"valid":true,"x":464,"y":140,"z":"e7bac913.184538","wires":[["96b8b92c.694748"]]}]

Nicholas O'Leary

unread,
May 1, 2015, 5:04:05 AM5/1/15
to Node-RED Mailing LIst
Hi Thomas - work around documented here: https://github.com/node-red/node-red/issues/163

Cheers,
Nick

--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jo2

unread,
Jun 24, 2015, 10:29:21 AM6/24/15
to node...@googlegroups.com
Thanks for that link Nick!

I wrote a comment in that thread - but boils down to - can one use the http-request node for https request, and with support for all
the https options? E.g. certificates? I made a "nttps-request" node, but sounds like it is not necessary!

Cheers
-jo
Reply all
Reply to author
Forward
0 new messages