Example of using zerorpc over zmq curve - for transport encryption and client / server authentication
this is modeled after the pyzmq security ironhouse example, where both endpoints are authed :
https://github.com/zeromq/pyzmq/blob/master/examples/security/ironhouse.py
zmq curve enabled :
brew install zmq --with-libsodium
installing pyzmq, and generate the certs
git clone https://github.com/zeromq/pyzmq`
cd pyzmq
(in a virtenv)
python setup.py install
cd examples/security
python generate_certificates
python ironhouse.py
[INFO] Ironhouse test OK
cd ../../..
installing zerorpc-python
git clone https://github.com/0rpc/zerorpc-python
cd zerorpc-python
(in a virtenv)
python setup.py install
cd ..
(in this gist path)
cp -R pyzmq/examples/security/public_keys .
cp -R pyzmq/examples/security/private_keys .
cp -R pyzmq/examples/security/certificates .
python server_curve.py
endpoint: tcp://127.0.0.1:5555
Secure transport
python client_curve.py 'tcp://127.0.0.1:5555' echo foo
Secure transport
connecting to "tcp://127.0.0.1:5555"
'foo'