How to create username and password in mqtt mosquitto programatically in C#

317 views
Skip to first unread message

abhinav sharma

unread,
Jul 24, 2015, 8:39:00 AM7/24/15
to MQTT

I am new to mqtt mosquitto.i want to create some user in mosquitto programatically in C#, so that when i create topic only assigned users can subscribe to that topic.

  • can i create x509certificate ,so that my device will install these certificate and i can authenticate at the time of subscribe message.if possible then how.
  • if x509certificate is not supported by mqtt mosquitto so how authentication will work(by creation of user only or there is some other mechanism).
  • when i am using this _client = MqttClientFactory.CreateClient(address, obj.ClientID,"username","password"); then broker connection error occur.
  • with one topic how much user can be created
Thanks in advance

abhinav sharma

unread,
Aug 6, 2015, 3:27:36 AM8/6/15
to MQTT
With command prompt i am able to create user, created new password file with command but now i want to create new users from c# .Is there is any mechanism in mqttlib or any library ,so that i can create new users in c# projects.   

Ian Craggs

unread,
Aug 10, 2015, 6:44:09 AM8/10/15
to MQTT
This group is for general MQTT questions.  Mosquitto specific questions are better addressed to the Mosquitto mailing list: https://dev.eclipse.org/mailman/listinfo/mosquitto-dev
Reply all
Reply to author
Forward
0 new messages