Skip to content

What is the new correct way of disabling SSL verification post 6.0? #313

@vesper8

Description

@vesper8

Previously we were able to set

    'curl_options' => [
        CURLOPT_SSL_VERIFYHOST => 0,
        CURLOPT_SSL_VERIFYPEER => 0,
    ],

But since curl_options was removed in 6.0, what is now the current way of disabling SSL verification?

I've found that if I edit vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php and add $options['verify'] = false; to the __invoke method it will do the trick.. but I can't figure out how to set this value through the Laravel configuration.

I know this isn't a Laravel package but it's widely used in Laravel so am hoping someone can provide some insight. Is it even possible or is the only way to revert to ^5.0 ?

Thanks

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