-
Notifications
You must be signed in to change notification settings - Fork 46
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
stomp+ssl #34
Comments
This is likely a mismatch between the given hostname and the hostname in the cert, this changed by php5.5. or php5.6 to be a strict match |
Thanks @monofone, I´m using PHP 5.4.24 but I'm going to continue on the way you told me. |
I have found these tutorials: |
I still does not manage to connect using SSL. I have seen you use fsockopen function and PHP manual says that function does not allow to provide stream context. stream_socket_client function allows to provide such context. Then, it seems I can not connect using SSL using your class. I have also seen in your functional test: https://github.com/dejanb/stomp-php/blob/master/tests/functional/StompSslTest.php that you do not use any context parameters like client certificate. I want to use some context options like these:
|
I have found the problem. The problem is just what I told before. Now I am using a fork of this repo and works fine. This fork fixs the problem: https://github.com/rethab/stomp-php That fork uses stream_socket_client functions instead of fsockopen. |
It still seems to be impossible to connect over ssl. I keep getting Connection refused. |
I am trying to connect to stomp over ssl and I get this error
My sample:
And my activemq.xml config file:
Server is up and accepting stomp connections.
This is the ActiveMQ guide to use stomp+ssl
http://activemq.apache.org/how-do-i-use-ssl.html
I suppose:
Does somebody knows any good step by step tutorial/sample code?
The text was updated successfully, but these errors were encountered: