-
Notifications
You must be signed in to change notification settings - Fork 31
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
Config option for disable SSL check #21
Comments
I will have to investigate this |
You can set |
You can always set env variables from JS/TS code itself process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0; |
Yea, this solves the problem, but I dont want to disable it globally, setting ENV var will affect some other parts of my code |
I will make a patch tonight with an option to disable validation just for the HTTP client. |
An option to override HTTP client behavior was implemented in 8555802 that will be published on NPM after I will run some more tests |
Version 2.4.0 was published on NPM. Let me know if it works for you: const bitrix = Bitrix('https://PORTAL_NAME.bitrix24.ru/rest', 'ACCESS_TOKEN', {https: { rejectUnauthorized: false }}) |
Sending request to host that has self-signed cert raises an error
GotError [RequestError]: self signed certificate
any options to avoid this?
The text was updated successfully, but these errors were encountered: