|
@@ -130,7 +130,7 @@ namespace MQTTnet.Implementations |
|
|
|
|
|
|
|
|
foreach (var certificate in options.TlsOptions.Certificates) |
|
|
foreach (var certificate in options.TlsOptions.Certificates) |
|
|
{ |
|
|
{ |
|
|
certificates.Add(new X509Certificate(certificate)); |
|
|
|
|
|
|
|
|
certificates.Add(new X509Certificate2(certificate)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return certificates; |
|
|
return certificates; |
|
@@ -155,4 +155,4 @@ namespace MQTTnet.Implementations |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
#endif |
|
|
|
|
|
|
|
|
#endif |