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

Option to disable SSL certificate verification #40

Closed
jameshilliard opened this issue Jan 4, 2017 · 1 comment
Closed

Option to disable SSL certificate verification #40

jameshilliard opened this issue Jan 4, 2017 · 1 comment
Labels

Comments

@jameshilliard
Copy link

I'm trying to connect to a websocket server and am getting this error:

Could not connect: Unable to complete SSL/TLS handshake: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed

I should have a valid SSL certificate(it works ok in the browser) however I'm running a non-standard websocket server application which may have issues with the full chain.
I'm trying to disable SSL certificate verification for testing but I'm not seeing an obvious way to do that.

@cboden cboden added the question label Jan 5, 2017
@cboden
Copy link
Member

cboden commented Jan 5, 2017

The third parameter of the Connector class accepts an associative array of SSL context options.

@cboden cboden closed this as completed May 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants