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

No obvious way to set or use NetMQCertificate / cryptography. #10

Open
koddan2 opened this issue Mar 11, 2023 · 0 comments
Open

No obvious way to set or use NetMQCertificate / cryptography. #10

koddan2 opened this issue Mar 11, 2023 · 0 comments

Comments

@koddan2
Copy link

koddan2 commented Mar 11, 2023

E.g. https://github.com/zeromq/netmq/blob/master/src/NetMQ.Tests/CurveTests.cs

Excerpt from test:

var serverPair = new NetMQCertificate();
using var server = new DealerSocket();
server.Options.CurveServer = true;
server.Options.CurveCertificate = serverPair;
server.Bind($"tcp://127.0.0.1:55367");

var clientPair = new NetMQCertificate();
using var client = new DealerSocket();
client.Options.CurveServerKey = serverPair.PublicKey;
client.Options.CurveCertificate = clientPair;
client.Connect("tcp://127.0.0.1:55367");
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

1 participant