"RequestError: self-signed certificate"

I am trying to scrape some information from a webpage but I seem to be failing at the first hurdle.
I get an error on teh http request of "RequestError: self-signed certificate"

Is there a way I can get around this?

You can turn off certificate checks which would stop the error.

image

So you need to include a msg.rejectUnauthorized property in the inbound msg.

Thanks
Do I do that in a 'funcction node' before the 'http request node'?

You could do it with a change node if you wanted.

I think I may be able to do it by ticked the "Enable secure (SSL/TLS) connection" box, in the http request node and then edit the TLS configuration and uncheck the "Verify server certificate" box. I will try it tomorrow,

But I'm interested in how I would do it using a "change node"?
Would the change node be before or after the http request node? ANd what am I changing? Something like;

options = 
  
  rejectUnauthorized: false

image

Thank you that worked.
FYI, I couldn't get it to work using the uncheck the "Verify server certificate" box though.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.