Przeglądaj źródła

Serialized certificates loaded as X509Certificate2

Instances of X509Certificate2 passed into an MqttClientOptionsBuilder lose data and functionality by being loaded as an X509Certificate.
release/3.x.x
cvellan 7 lat temu
committed by GitHub
rodzic
commit
f974dcb647
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć
  1. +2
    -2
      Frameworks/MQTTnet.NetStandard/Implementations/MqttTcpChannel.cs

+ 2
- 2
Frameworks/MQTTnet.NetStandard/Implementations/MqttTcpChannel.cs Wyświetl plik

@@ -130,7 +130,7 @@ namespace MQTTnet.Implementations

foreach (var certificate in options.TlsOptions.Certificates)
{
certificates.Add(new X509Certificate(certificate));
certificates.Add(new X509Certificate2(certificate));
}

return certificates;
@@ -155,4 +155,4 @@ namespace MQTTnet.Implementations

}
}
#endif
#endif

Ładowanie…
Anuluj
Zapisz