Skip to content

document: make an HTTP request over TLS and disable server certificate verification  #1191

@jgehrcke

Description

@jgehrcke

For controlled environments like test suites one wants to be able to make the HTTP client do communication over TLS but instruct it to not perform server certificate verification.

Looks like currently this can be done with

got('https://local.dev', { rejectUnauthorized: false });

see #477 (comment).

I think this (or something like this) should be an official/documented part of the API. At least discussed / easy to find in the documentation.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions