Closed prkemp closed 1 year ago
Figured out what I was doing wrong. You can't just make up your own arbitrary public/private key. They have to be generated as a pair, which you can do using new NetMQCertificate(), then safe the public key down to a file, which the subscriber process(es) can use.
I hope my experience helps others!
NetMQ Version: 4.0.1.12 Operating System: Windows 10 .NET Version: 6.0 LTS
Based on example presented in https://github.com/zeromq/netmq/issues/910, I've tried to split the publisher and subscriber across different processes. Both sockets are configured for Curve security (the subscriber[client] uses the publisher[server] public key).
Run the server and client, below, in separate processes. The client doesn't receive any messages when Curve security is configured. If security is disabled, the messages are received by the subscriber as expected.
Is this an issue with the library, or is the code wrong?
Thanks
Server code:
Client code: