-
Notifications
You must be signed in to change notification settings - Fork 104
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
Add secure RawSocket example #72
Comments
Not as of now. @davidchappelle has patches that might be merged into autobahn-cpp which generalize the transport interface. Theoretically this means that after these get merged, you could add a WebSocket transport yourself. I'm not aware of any code that actually implements WebSockets from autobahn-cpp yet, though. (It might pop up in the future, or it might not.) |
If you mean: WAMP-RawSocket over TLS .. that should work already. We need an example though. If you specifically mean WAMP-WebSocket over TLS, as @jpetso notes, there has to be a proper transport abstraction first. Second is adding WebSocket transport as one option - and that based on https://github.com/zaphoyd/websocketpp Once that is done, secure WebSocket comes free, as |
If anyone is looking to add websocket support to autobahn-cpp, please On Thu, Jan 28, 2016 at 1:06 PM, Tobias Oberstein notifications@github.com
|
With the way that the abstraction was done, I would expect it to be fairly On Thu, Jan 28, 2016 at 1:08 PM, David Chappelle chappedm@gmail.com wrote:
|
Tested wss:// with websocket transport, works as expected. Tested with the following setup: Crossbar.io router behind AWS ELB (SSL 443 -> TCP PVT Port)
Configure TLS init handler for Websocket client
|
@DZabavchik Nice. Thanks for leaving code/comments for WS example here! |
Hi, Does current autobahn-cpp code works with wss:// ? Or some patches still be needed. I've tried something like this: ` typedef websocketpp::clientwebsocketpp::config::asio_tls_client client;
` , but without success (however it works with autobahn-python). The error is: Connecting to realm: realm1 Any suggestions? Could you probably to show full example? Thanks! |
Autobahn-cpp does work with wss:// Since you are connecting to wss://localhost I assume you are using self-signed certificate. You may need to add your CA cert to trusted root CA file. Regards, Denis
|
Thanks for the quick replay Denis, Actually I'm not using localhost (just placed this name in the example). Also it works without any problem with autobahn-python, but doesn't with autobahn-cpp. Probably it is some mess with types. For instance I cannot see where:
is used. Maybe you have some simple example (like wss_publish.cpp or so? Many Thanks, |
Typedef is just not used. You could do:
Any chance TLSv1 is disabled on the server? Can you run Crossbar with debug logging and see what server says when you try to connect? How do you initialize OpenSSL library (ciphers, algos and CA file). Some related issues: |
I will try to verify the server, however it may take some time (it is not mine). Many Thanks! |
Hi, There are logs... Not so clear for me ( From autobahn-cpp side:
From server side:
-----------AND ---------------
|
I've found the problem finally. crossbario supports only TLS v1.2 clients. So using:
makes it to work. Thanks for the help! |
I'm having an issue implementing the utilization of wss/wamp with a combination of websocketpp and autobahn|cpp libraries. Ultimately, my issue is that calling The fault is happening in boost::asio::detail::strand_service& boost::asio::use_serviceboost::asio::detail::strand_service(boost::asio::io)service&) io_service.hpp (line 33). Here is a screenshot of the call stack (http://imgur.com/bWV25WB). As the error (at the end of this post) suggests, I have tried adding The web socket feed I'm attempting to utilize is found here (https://poloniex.com/support/api/). Any thoughts, ideas, or advice on what I'm doing wrong in my code (below) would be extremely appreciated. If there's any other information I can provide to help investigate this, please don't hesitate to let me know! Includes I'm using:
Code With An Issue
Results/Errors Output:
|
Hi again all. I actually fixed my issue and in so doing, I think I've created an example of using secure RawSocket/WebSocket. Includes:
Solution:
|
Hello,
can I somehow connect to Secure WebSocket Servers (wss://)? I can't find a solution in the documentation.
The text was updated successfully, but these errors were encountered: