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

SSL Verification #5

Closed
yuskamal opened this issue Feb 3, 2021 · 2 comments
Closed

SSL Verification #5

yuskamal opened this issue Feb 3, 2021 · 2 comments

Comments

@yuskamal
Copy link

yuskamal commented Feb 3, 2021

When access to https I got error message :
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed

How to skip SSL verification ?

thx

@walkor
Copy link
Owner

walkor commented Feb 4, 2021

Try add config context like this.

$http = new Workerman\Http\Client([
    'context' => ['ssl' => [
      'verify_peer' => false,
      'verify_peer_name' => false,
      'allow_self_signed' => true
    ]]
]);

@yuskamal
Copy link
Author

yuskamal commented Feb 4, 2021

yesss, that's work

thank you

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