title: MQTTNET connection
body: <p>I have written this application to use mqttnet library but connection failed.
  How is it possible to get mqttnet with a trace?
  Do you notice something wrong with the connection?
  Here my code</p>
  <pre><code>            var mqttClient = new MqttFactory(new MQTTnet.Diagnostics.MqttNetLogger(&quot;MyCustomId&quot;)).CreateMqttClient();
          var caCert = X509Certificate.CreateFromCertFile(&quot;C:\\ca.crt&quot;);
          var clientCert = new X509Certificate2(&quot;C:\\certificate.pfx&quot;, &quot;uno&quot;);
  
          var options = new MqttClientOptionsBuilder()
             .WithCredentials(&quot;ut&quot;, &quot;pwd&quot;)
             .WithTcpServer(&quot;mydns&quot;, 8883)
              .WithTls(new MqttClientOptionsBuilderTlsParameters
              {
                  UseTls = true,
                  SslProtocol = System.Security.Authentication.SslProtocols.Tls13,
                  Certificates = new List&lt;X509Certificate&gt;()
                      {
                          caCert, clientCert
                      },
                      CertificateValidationCallback = (X509Certificate x, X509Chain y, SslPolicyErrors z, IMqttClientOptions o) =&gt;
                      {
                          return true;
                      }
              })
              .Build();
          MQTTnet.Client.Connecting.MqttClientAuthenticateResult r=await mqttClient.ConnectAsync(options, CancellationToken.None);
  </code></pre>
  <p>Thank you
  any help would be appreciated</p>