filipedeschamps / rss-feed-emitter

Super RSS News Feed aggregator written in Node.js and ES6
MIT License
1.06k stars 77 forks source link

Certificate for request #212

Open axi92 opened 3 years ago

axi92 commented 3 years ago

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

TobiTenno commented 3 years ago

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

axi92 commented 3 years ago

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.

TobiTenno commented 3 years ago

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

axi92 commented 3 years ago

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.

TobiTenno commented 3 years ago

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.