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

Will curve security be implemented? #8

Open
ziegi opened this issue Sep 25, 2019 · 12 comments
Open

Will curve security be implemented? #8

ziegi opened this issue Sep 25, 2019 · 12 comments

Comments

@ziegi
Copy link

ziegi commented Sep 25, 2019

I want to user ZeroMQ's Security Layer CurveZMQ,
will the javascript client support this in the near future ?

Thanks, for your work, jszmq has been easy to setp up
and seems to be working reliable in my angular app.

@somdoron
Copy link
Member

Very cool!

My plan is to actually support TLS at libzmq level and then you would be able to use WSS from the browser to libzmq.

Right now, WSS is supported on jszmq but not on libzmq. You can do ssl termination with ngnix or stunnel and use the websocket protocol on libzmq.

I'm also looking to add bearer and username/password authentication to jszmq and zeromq (zeromq already have the username/password authentication).

@ziegi
Copy link
Author

ziegi commented Sep 25, 2019

Thanks for your fast reply,
while plain username/password authentication over TLS would be fine in terms of security.

The use of curve as security layer would enable me to switch between a c-client connecting to a tcp port and a javascript-client connecting to a ws port without changing the main server i am connecting to.

As far as I see, in libzmq using plain username/password would be unsecure on the tcp port and only secure on the TLS enabled ws port.

@somdoron
Copy link
Member

That is making sense, I will into supporting curve as well. At least there is a libsodium version for javascript.

@lewoudar
Copy link

TLS will be great for zeromq!

@somdoron
Copy link
Member

@lewoudar Watch the following pull request for TLS progress:
zeromq/libzmq#3695

@lewoudar
Copy link

Thank you

@somdoron
Copy link
Member

somdoron commented Oct 2, 2019

Pull request is merged, wss protocol is now supported with libzmq

@lewoudar
Copy link

lewoudar commented Oct 3, 2019

@somdoron great work! I'm newbie to zeromq (but I already love working with it), so how do we configure the certificate to work with TLS and zeromq?

@somdoron
Copy link
Member

somdoron commented Oct 3, 2019 via email

@lewoudar
Copy link

lewoudar commented Oct 3, 2019

Ok, even if I'm not a C++ guru, I think I understood how it work ^^
Hope it will work with python bindings without needing changes
Thank you again for this job

@somdoron
Copy link
Member

somdoron commented Oct 4, 2019

@ziegi libzmq ws transport now supports curve. However, jszmq doesn't support it yet.
Checkout https://github.com/zeromq/libzmq/blob/977f137a8370363b28f054d5aa8a8cbcb85f8c81/tests/test_ws_transport.cpp#L109

@Elsaligi
Copy link

Checkout https://github.com/zeromq/libzmq/blob/master/tests/test_wss_transport.cpp

On Thu, Oct 3, 2019, 08:13 Kevin Tewouda @.***> wrote: @somdoron https://github.com/somdoron great work! I'm newbie to zeromq (but I already love working with it), so how do we configure the certificate to work with TLS and zeromq? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#8?email_source=notifications&email_token=AAUW75RRDORQ6NHVENUSVS3QMV5PVA5CNFSM4I2J26A2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAHAMZY#issuecomment-537790055>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAUW75VFDHKA4PJR4PSCZADQMV5PVANCNFSM4I2J26AQ .

Hi..Can you kindly provide some link for making wss work with python pyzmq? Any help would be appreciated..Kindly help me..

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

4 participants