We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Can be avoided by:
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0" # Avoids DEPTH_ZERO_SELF_SIGNED_CERT error for self-signed certs
But maybe there is a better option. I didn't find the option in your readme.
There is an option called rejectUnauthorized. https://nodejs.org/api/tls.html
Seems that it's the option to look into:
var req = (ssl ? https : http).request({ rejectUnauthorized������������������������������������������������������: false })
You'll have to make an opiton for this one
The text was updated successfully, but these errors were encountered:
@halt-hammerzeit: I encountered same issue, I fixed it by adding the rejectUnauthorized option in decorateRequest:
app.use('/proxy', proxy('www.google.com', { forwardPath: function(req, res) { return require('url').parse(req.url).path; }, decorateRequest: function(req) { req.rejectUnauthorized=false; return req; } }));
Sorry, something went wrong.
Also recently I found out about Node.js TLS module ca option which takes your self-generated root CA and then this error goes away.
ca
No branches or pull requests
Can be avoided by:
But maybe there is a better option.
I didn't find the option in your readme.
There is an option called rejectUnauthorized.
https://nodejs.org/api/tls.html
Seems that it's the option to look into:
You'll have to make an opiton for this one
The text was updated successfully, but these errors were encountered: