static SslOption ToSslOption(SslSettings ssl)
        {
            if (ssl == null)
            {
                return(new SslOption());
            }

            var sslOption = new SslOption(ssl.ServerName, ssl.CertPath, ssl.Enabled)
            {
                CertPassphrase         = ssl.CertPassphrase,
                Version                = ssl.Version,
                AcceptablePolicyErrors = ssl.AcceptablePolicyErrors
            };

            return(sslOption);
        }
 /// <summary>
 /// Stores ssl options to be used when connection to RabbitMQ is established
 /// intended to use with single node Rabbitmq setup
 /// </summary>
 public void SetSslSettings(SslSettings sslSettings)
 {
     _connectionManager.SetSslOptions(sslSettings);
 }
 public void SetSslOptions(SslSettings ssl)
 {
     _amqpTcpEndpoints.ForEach(endpoint => { endpoint.Ssl = ToSslOption(ssl); });
 }