# How to use unencrypted, authenticated access?

**URL:** <https://forum.cedalo.com/t/how-to-use-unencrypted-authenticated-access/817>\
**Category:** Security\
**Created:** [June 13, 2023, 9:44am UTC](https://forum.cedalo.com/t/how-to-use-unencrypted-authenticated-access/817 "2023-06-13T09:44:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ullix](https://avatars.discourse-cdn.com/v4/letter/u/9f8e36/32.png) [@ullix](https://forum.cedalo.com/u/ullix)\
**Post date:** [June 13, 2023, 9:44am UTC](https://forum.cedalo.com/t/how-to-use-unencrypted-authenticated-access/817/1 "2023-06-13T09:44:51Z")

</div>

I am using unencrypted, unauthenticated access to [https://test.mosquitto.org/](https://test.mosquitto.org/) from Python on Linux for a while, and all works fine.

Now I want to test unencrypted, **authenticated** access, but how do configure this? I see no place to register name and password?

There is no security issue on my data, just wanting to try the authentication.

---

<div class="post-metadata">

**Author:** ![Tizian](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.cedalo.com/tizian/32/33_2.png) [@Tizian](https://forum.cedalo.com/u/Tizian)\
**Post date:** [June 14, 2023, 7:15am UTC](https://forum.cedalo.com/t/how-to-use-unencrypted-authenticated-access/817/2 "2023-06-14T07:15:29Z")

</div>

Hello,

The authenticated listeners require a username / password:

- rw / readwrite : read/write access to the # topic hierarchy
- ro / readonly : read only access to the # topic hierarchy
- wo / writeonly : write only access to the # topic hierarchy

More Details can be found on the [test.mosquitto.org](http://test.mosquitto.org) site under: **Authentication and topic access**

BR

Tizian

---

<div class="post-metadata">

**Author:** ![ullix](https://avatars.discourse-cdn.com/v4/letter/u/9f8e36/32.png) [@ullix](https://forum.cedalo.com/u/ullix)\
**Post date:** [June 14, 2023, 7:29am UTC](https://forum.cedalo.com/t/how-to-use-unencrypted-authenticated-access/817/3 "2023-06-14T07:29:17Z")

</div>

I do understand. What I am missing is how and where to configure this? I see no place to register name and password?

I am afraid I am still missing several things. I tried `mosquitto_sub -h test.mosquitto.org -t "#" -u wildcard -v` expecting it is a means to override user authorization for 20 sec. However, I can’t even connect:

```auto
$ mosquitto_sub -h test.mosquitto.org -t "#" -u wildcard -v
Connection error: Connection Refused: not authorised.

```

---

<div class="post-metadata">

**Author:** ![Tizian](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.cedalo.com/tizian/32/33_2.png) [@Tizian](https://forum.cedalo.com/u/Tizian)\
**Post date:** [June 14, 2023, 8:53am UTC](https://forum.cedalo.com/t/how-to-use-unencrypted-authenticated-access/817/4 "2023-06-14T08:53:47Z")

</div>

Hello 🙂

Try this:

` mosquitto_sub -h test.mosquitto.org -t "#" -u rw -P readwrite -p 1884 -v`

You have to use the username and password given by the server, it is not allowed to use your own user.  
If you need that, you can try it with our [Pro Mosquitto trial](https://cedalo.com/mqtt-broker-pro-mosquitto/trial-signup/).

---

<div class="post-metadata">

**Author:** ![ullix](https://avatars.discourse-cdn.com/v4/letter/u/9f8e36/32.png) [@ullix](https://forum.cedalo.com/u/ullix)\
**Post date:** [June 14, 2023, 9:19am UTC](https://forum.cedalo.com/t/how-to-use-unencrypted-authenticated-access/817/5 "2023-06-14T09:19:35Z")

</div>

Oh, those lines gave user name and password? Yes, with that I can connect. This will help for now, thank you.

Yet, this wildcard thing still does not work.

May I suggest to re-write this chapter “Authentication and topic access” so that even dummies like me can understand it? I find it highly confusing.
