Skip to content

Add option to disable ssl certificate verify. #695

@partic2

Description

@partic2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions