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

CURL Error htts SSL #3314

Closed
demortx opened this issue Jul 15, 2020 · 2 comments
Closed

CURL Error htts SSL #3314

demortx opened this issue Jul 15, 2020 · 2 comments

Comments

@demortx
Copy link

demortx commented Jul 15, 2020

$curl_options[CURLOPT_SSL_VERIFYPEER] = $config['verify'];

You must add a parameter
$curl_options[CURLOPT_SSL_VERIFYHOST] = $config['verify'];

Otherwise, an unpredictable error occurs when accessing http://

Or add the ability to set options
Exemple:
$curl = new CURLRequest( $config, new URI($options['base_uri'] ?? null), $response, $options );
$curl->setOpt(CURLOPT_SSL_VERIFYHOST, false);

@nyufeng
Copy link
Contributor

nyufeng commented Jul 22, 2020

Did you encounter any errors?
In production environments the value of this option should be kept at 2 (default value).

@demortx
Copy link
Author

demortx commented Jul 25, 2020

Did you encounter any errors?
In production environments the value of this option should be kept at 2 (default value).

@demortx demortx closed this as completed Jul 25, 2020
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

2 participants