Closed mortencombat closed 1 year ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Is there any solution? I need use_identity_as_username true
Describe the issue you are experiencing
I'm using a client certificate to publish to Mosquitto, with
use_identity_as_username true
so I shouldn't need to enter a username and password (eg. can just use certificate authentication).This works fine when I setup and test just locally. I cannot get it to work with the Mosquitto broker add-on in Home Assistant.
It works with the Mosquitto add-on, if I specify the username and password of a valid user, but this should not be necessary. When I test locally (setting up a local mosquitto broker), it works fine (eg. authenticating using just the client certificate/key, username/password is not necessary). As best as I can see, the
use_identity_as_username true
setting is not effectuated.Using mosquitto_pub with -d option, I get the following output:
On the Mosquitto add-on logs I see this (full log below):
What type of installation are you running?
Home Assistant OS
Which operating system are you running on?
Home Assistant Operating System
Which add-on are you reporting an issue with?
Mosquitto broker
What is the version of the add-on?
6.1.3
Steps to reproduce the issue
require_certificate: true
,customize.active: true
and specify ca_file, cert_file and key_fileuse_identity_as_username true
mosquitto_pub --cafile ca.crt --cert client.crt --key client.key -d -h <hostname> -p 8883 -t test -m "hello there"
System Health information
System Information
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4985 Installed Version | 1.28.3 Stage | running Available Repositories | 1142 Downloaded Repositories | 2Home Assistant Cloud
logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okHome Assistant Supervisor
host_os | Home Assistant OS 9.3 -- | -- update_channel | stable supervisor_version | supervisor-2022.10.2 agent_version | 1.4.1 docker_version | 20.10.18 disk_total | 30.8 GB disk_used | 4.8 GB healthy | true supported | true board | ova supervisor_api | ok version_api | ok installed_addons | Let's Encrypt (4.12.7), Studio Code Server (5.4.1), Terminal & SSH (9.6.1), Mosquitto broker (6.1.3)Dashboards
dashboards | 1 -- | -- resources | 0 mode | auto-genRecorder
oldest_recorder_run | November 11, 2022 at 16:31 -- | -- current_recorder_run | November 18, 2022 at 11:18 estimated_db_size | 35.93 MiB database_engine | sqlite database_version | 3.38.5Anything in the Supervisor logs that might be useful for us?
No response
Anything in the add-on logs that might be useful for us?
Additional information
No response