cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Wi-Fi Combo

New Contributor II

i Team,

I would like to try X509 security method MQTT over wiced studio for Murata type 1LD module.

Regular SAS token method is working with link MQTT with Microsoft Azure

The credentials are validated with PC application "MQTT Explorer". X509 does'nt required CA Root file from client side. Only Client Cert and Key.

Also username is must and password is not required.

pastedImage_1.png

I have tried following changes. But, not connecting to server .

pastedImage_6.png

pastedImage_7.png

Tried Wiced version 6.4 as well. The code stuck at Opening connection. ....

pastedImage_8.png

Please help.

Thanks and Regards

Sreejith KK

0 Likes
Reply
9 Replies
Moderator
Moderator

Hi,

Can you please provide me with the application code you are working at to reproduce the same error ?

Thanks

0 Likes
Reply
New Contributor II

Hi Aditi,

     Thank  you for response.

     Refer below link . Source code is attached "pub_sub_azure.zip".

     MQTT with Microsoft Azure

Thanks and Regards

Sreejith KK

0 Likes
Reply
Moderator
Moderator

Hi,

Since you have mentioned that X509 doesn't required CA Root file from client side, are you using self-signed certificates instead for your application?

Thanks

New Contributor II

Hi Aditi,

The server works with help of only Client certificate and client key.  CA root file is not mandatory.

it will be great , if you can help me on this.

Thanks and Regards

Sreejith KK

0 Likes
Reply
Moderator
Moderator

Hi,

I ran the same code pub_sub_azure.zip and was able to successfully connect . You need to add the password which is of the format "SharedAccessSignature sr=xxx.azure-devices.net%2Fdevices%2Fxxx&sig=HmLVzmjAioHPM7VBmgOPapuhPc15eqAGYe7lbYrlK8w%3D&se=1506406521" and this SAS token is generated through the Device Explorer twin.

Following link will help:

Posting a Message to Azure IoT Hub

PFA

Thanks

New Contributor II

Hi Aditi,

I hope, you have clearly read my question which i posted earlier.

i have successfully tested this with SAS token method many times earlier with this code and now i am trying with X509 authentication method which doesn't required  "Password" as well as "Root CA Certificate".

This method has proven in PC application as well as some Cellular modules.  Please help if you can support with server communication method which i mentioned earlier.

Thanks and Regards

Sreejith KK

0 Likes
Reply
Moderator
Moderator

Hi,

Could you please provide us the relative document you are using for azure as well as the azure document you are using for the security mechanism to better understand the problem.

Thanks

New Contributor II

Hi Aditi,

This is what i am looking. I hope, this will make you clear now at least.

Azure Device Provisioning Server over MQTT using x509 Certificates | Busbyland - Azure IoT Playgroun...

Meanwhile, i have verified my credentials with PC application "MQTT explorer" and its working. I hope, you will support me here.

Thanks and Regards

Sreejith KK

New Contributor II

HI Aditi,

Do you have some solution on my previous query ? It seems, this is latest communication method adopted by Azure MQTT and more people are following this.

Thanks and Regards

Sreejith KK

0 Likes
Reply