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

Add option to disable ssl certificate verify. #695

Open
partic2 opened this issue Feb 27, 2025 · 2 comments
Open

Add option to disable ssl certificate verify. #695

partic2 opened this issue Feb 27, 2025 · 2 comments

Comments

@partic2
Copy link

partic2 commented Feb 27, 2025

Sometime I need "fetch" from https website without valid certificate. In which case I want to disable ssl certificate verifiy.

Maybe add

  curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0);
  curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);

will work.
But how to tell txiki.js when to do this?

BTW, We can disable ssl certificate verify on node.js, By set environment variable NODE_TLS_REJECT_UNAUTHORIZED=0.

@bnoordhuis
Copy link
Contributor

We can disable ssl certificate verify on node.js, By set environment variable NODE_TLS_REJECT_UNAUTHORIZED=0

I added that environment variable to node back in the day and I deeply regret it. The internet is filled with terrible advice regarding that setting. "Wotsa 'certificate error'? Herp derp, disable" 🤦

@lal12
Copy link
Contributor

lal12 commented Mar 1, 2025

We can disable ssl certificate verify on node.js, By set environment variable NODE_TLS_REJECT_UNAUTHORIZED=0

I added that environment variable to node back in the day and I deeply regret it. The internet is filled with terrible advice regarding that setting. "Wotsa 'certificate error'? Herp derp, disable" 🤦

Agree. I also would prefer an individual per request option.

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

3 participants