-
Notifications
You must be signed in to change notification settings - Fork 297
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
ignore self signed certificate issue in request-promise #225
Comments
Add let options = {
method: GET,
json: true,
uri : "https://" +this.urls + endpoint,
body: payload,
insecure: true
}; |
@ecdeveloper Thanks for helping out! Quick question: Where did you find this option? Is it one that @jkjha Just in case |
+1 |
Having the same issue, insecure true didn't solve it but |
So I need to implement access to an mTLS protected resourcese, that means in neeed to provide the the CA which signed the service i am trying to access, as well as my own certificate and privateKey. what would use for that? |
does nothing for me, i just get a different kind of error - still saying self signed |
Adding both options seems to work for me :) |
worked for me And also making sure that |
This works for me in request.get
|
I am using request-promise module for my node app to make some API call. https://www.npmjs.com/package/request-promise
SInce the API what I am trying to use is insecure (having self signed certificate), the conncetion is failing with this error:
Error: connect ECONNREFUSED
I know with "request" module, we could pass rejectUnauthorized: false , to handle such case. I am not sure how can I pass such option with request-promise module.
The text was updated successfully, but these errors were encountered: