rss-feed-emitter icon indicating copy to clipboard operation
rss-feed-emitter copied to clipboard

Certificate for request

Open axi92 opened this issue 3 years ago • 5 comments

Is there an option to pass an certificate to the request?

axi92 avatar Jan 22 '21 08:01 axi92

Not at present. What kind of certificate are you looking to pass?

TobiTenno avatar Jan 22 '21 21:01 TobiTenno

A ca-certificate https://github.com/request/request#tlsssl-protocol We use a self signed cert, so I need to pass the cert to the request.

axi92 avatar Jan 26 '21 10:01 axi92

you'll probably want to look at how this would be done with node-fetch, i'm in progress attempting to convert from request to something still supported

TobiTenno avatar Jan 27 '21 19:01 TobiTenno

I moved in all of my projects to https://www.npmjs.com/package/got where I used request. Got is nice to use and behaves similar to request.

axi92 avatar Jan 29 '21 09:01 axi92

Fair enough. I'm trying to use a more browser-friendly API, since node-fetch is the node impl of the web api of the same name. That's my motivation for that.

TobiTenno avatar Jan 30 '21 06:01 TobiTenno