Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certificate for request #212

Open
axi92 opened this issue Jan 22, 2021 · 5 comments
Open

Certificate for request #212

axi92 opened this issue Jan 22, 2021 · 5 comments

Comments

@axi92
Copy link

axi92 commented Jan 22, 2021

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

@TobiTenno
Copy link
Collaborator

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

@axi92
Copy link
Author

axi92 commented Jan 26, 2021

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
Copy link
Collaborator

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
Copy link
Author

axi92 commented Jan 29, 2021

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants