Guest User

Untitled

a guest
Oct 17th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. var cf = new ConnectionFactory();
  2. cf.Uri = new Uri("amqps://brokerRemoteHostName:5671");
  3. cf.Ssl.Enabled = true;
  4. cf.Ssl.ServerName = "brokerRemoteHostName";
  5. cf.Ssl.CertPath = @"C:UsersmahmoudDocumentscertificate_openssl.p12";
  6. cf.Ssl.CertPassphrase = "myPassword";
  7. var connection = cf.CreateConnection();
Add Comment
Please, Sign In to add comment