Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ZeroMQ securely over the internet

I've been working with zeroMQ a bit and I want to be able to connect securely over the Internet. I'm in ruby and could use SSL and/or some sort of shh connection but cannot find any examples of how to do this.

I found this old stackoverflow link, How does zeromq work together with SSL? saying they were working on some sort of security, but that was a year ago and I can't find any new references.

Even if this isn't built into zeroMQ, I would assume that there would be some way to set this up with OpenSSL or something similar.

Note: zeroMQ website mentions using VPN or something if you want secure transport. I do not want to use VPN. There must be a better way.

like image 655
John Duff Avatar asked Oct 21 '12 01:10

John Duff


1 Answers

Similar to VPN, but much easier to setup:

  • encrypted tunnel with socat

Let's make each zeromq side connected locally to socat, and two socats connect with each other using encrypted channel.

Some links: [1], [2], [3], [4].

like image 56
Grzegorz Wierzowiecki Avatar answered Sep 29 '22 00:09

Grzegorz Wierzowiecki