I'm making a simple request using the request-promise
library, but it errors out because I have a self-signed cert in my chain (which is a requirement, not having it is not an option)
with NPM I can specify that cert to install packages (which I've done):
npm config set cafile "<path to my certificate file>"
then I can install whatever packages becuase it knows to trust my self-signed cert.
Is there a way to make a request with request-promise
and specify the self-signed cert to trust?
The request is very straightforward: return request.get('/myendpoint')
It just throws an error because of the self-signed cert.
If it's not possible with request-promise
is there another library that allows that kind of functionality?