瀏覽代碼

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 年之前
committed by GitHub
父節點
當前提交
f974dcb647
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      Frameworks/MQTTnet.NetStandard/Implementations/MqttTcpChannel.cs

+ 2
- 2
Frameworks/MQTTnet.NetStandard/Implementations/MqttTcpChannel.cs 查看文件

@@ -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

Loading…
取消
儲存