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

can't support https with 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' #40

Closed
liuwei000000 opened this issue Apr 28, 2019 · 2 comments
Closed

can't support https with 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' #40

liuwei000000 opened this issue Apr 28, 2019 · 2 comments

Comments

@liuwei000000
Copy link

download https url
error:
{ Error: unable to verify the first certificate
at TLSSocket. (_tls_wrap.js:1105:38)
at emitNone (events.js:106:13)
at TLSSocket.emit (events.js:208:7)
at TLSSocket._finishInit (_tls_wrap.js:639:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:469:38) code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' }

@liuwei000000
Copy link
Author

could ‘’then-request‘’ similar to ‘’https’ ,which has option { rejectUnauthorized: false }

@ForbesLindesay
Copy link
Member

There is very little point doing https with {rejectUnauthorized: false}

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

No branches or pull requests

2 participants