Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var cf = new ConnectionFactory();
- cf.Uri = new Uri("amqps://brokerRemoteHostName:5671");
- cf.Ssl.Enabled = true;
- cf.Ssl.ServerName = "brokerRemoteHostName";
- cf.Ssl.CertPath = @"C:UsersmahmoudDocumentscertificate_openssl.p12";
- cf.Ssl.CertPassphrase = "myPassword";
- var connection = cf.CreateConnection();
Add Comment
Please, Sign In to add comment