Skip to content

Misleading TLS verification instructions #108

@bagder

Description

@bagder

The README currently says:

SSL verification setup:

$curl = new Curl\Curl();
$curl->setOpt(CURLOPT_RETURNTRANSFER, TRUE);
$curl->setOpt(CURLOPT_SSL_VERIFYPEER, FALSE);
$curl->get('https://encrypted.example.com/');

Which makes it sound as if this is a recommend or even good setup, while in fact this disables SSL verification.

I would strongly urge that you rather show how to use this securely, which would mean not disabling TLS security.

/ Daniel, curl lead developer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions