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
Can I run chat on https server? #12
Comments
Please upgrade workerman to the latest version. $context = array(
'ssl' => array(
'local_cert' => __DIR__ . '/path',
'local_pk' => __DIR__ . '/path',
'verify_peer' => false,
)
); The
Please show the |
Adding My Workerman version:
|
Looks like the certificate is invalid. |
What program you use to generate certificate? I use openssl and script make-certs.sh from this page http://stackoverflow.com/questions/19665863/how-do-i-use-a-self-signed-certificate-for-a-https-node-js-server. |
I purchased the certificate from aliyun.com. |
Thanks. Problem was resolved. |
I changed this part in index.html:
ws = new WebSocket("wss://"+document.domain+":7272");
and enable ssl in start_gateway.php
Get following error:
Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca in /home/orgjvpwd/public_html/user_account/video-server/vendor/workerman/workerman/Connection/TcpConnection.php on line 391
SSL Handshake fail.
The text was updated successfully, but these errors were encountered: