I want OPC UA IIoT Starter Kit to connect AWS IoT Thing. |OPC UA Implementation: Stacks, Tools, and Samples|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
I want OPC UA IIoT Starter Kit to connect AWS IoT Thing.
Avatar
Toshihisa Fujii
Member
Members
Forum Posts: 6
Member Since:
02/24/2014
sp_UserOfflineSmall Offline
1
07/03/2023 - 23:36
sp_Permalink sp_Print

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

 

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
07/04/2023 - 05:11
sp_Permalink sp_Print

Are you using the public or the member only version?

Avatar
Toshihisa Fujii
Member
Members
Forum Posts: 6
Member Since:
02/24/2014
sp_UserOfflineSmall Offline
3
07/04/2023 - 16:42
sp_Permalink sp_Print

I am using member only version.

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
07/05/2023 - 06:20
sp_Permalink sp_Print sp_EditHistory

We are about to release 1.05.03 which officially includes the topic tree enhancements.

I will work applying those updates and making sure the MQTT works with AWS. It will likely be a few weeks (end of summer).

Avatar
Toshihisa Fujii
Member
Members
Forum Posts: 6
Member Since:
02/24/2014
sp_UserOfflineSmall Offline
5
07/05/2023 - 16:03
sp_Permalink sp_Print

Good news. Thank you!!   I am looking forward to getting release 1.05.03.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1435
Posts: 4855