02/24/2014
Hi,
I want to get MqttAgent within "OPC UA IIoT Starter Kit" connect to AWS IoT Thing. AWS IoT Thing provides certification file, key pair file and CA certification file on its creation so that MQTT publisher connects to AWS IoT broker. I suppose that current MqttAgent does not support such certification files to connect to MQTT broker because ActionConnection.cs implements following logic for mqtts.
if (brokerUrl.Scheme == Utils.UriSchemeMqtts)
{
builder = builder.WithTls(new MqttClientOptionsBuilderTlsParameters
{
UseTls = true,
Certificates = null,
SslProtocol = System.Security.Authentication.SslProtocols.None,
AllowUntrustedCertificates = false,
IgnoreCertificateChainErrors = false,
IgnoreCertificateRevocationErrors = false,
CertificateValidationHandler = Client_MqttClientCertificateValidation
});
}
So I have questions/requests below.
1) Is my understanding correct? If I am incorrect (i.e. MqttAgent can support connection to MQTT broker by using certifications), please let me know how to specify certifications on connect (Can publiser.json support the connection?).
2) Unless current MqttAgent support connection to MQTT broker by using certifications, could you please tell me how to modify the source code of MqttAgent. Is modifying the source code snipet above enough? Providing sample modification is welcome.
Best regards,
Toshihisa Fujii
1 Guest(s)