addons
addons copied to clipboard
Mosquitto broker does not refresh SSL certs
Describe the issue you are experiencing
I connect to my mosquitto broker with SSL on port 8883. Apparently my mosquitto broker was running for a while (and I don't monitor my cron jobs particularly well) because today I noticed that they were failing due to the SSL cert being expired back on January 24th.
I use the DuckDNS add on to automatically refresh the SSL certs, and I was able to confirm that the certs currently in the ssl directory are valid until May.
Restarting the mosquitto broker fixes this problem.
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.4.0
Steps to reproduce the issue
- Set up the DuckDNS add on to create SSL certs
- Set up the Mosquitto Broker add on to use the SSL certs that DuckDNS manages
- Check when the SSL certs are set to expire
- Run the Mosquitto Broker
- Wait until the certs expire
- Observe that SSL connections to the Mosquitto broker no longer work
System Health information
System Information
| version | core-2023.11.1 |
|---|---|
| installation_type | Home Assistant OS |
| dev | false |
| hassio | true |
| docker | true |
| user | root |
| virtualenv | false |
| python_version | 3.11.6 |
| os_name | Linux |
| os_version | 6.1.21-v8 |
| arch | aarch64 |
| timezone | America/Denver |
| config_dir | /config |
Home Assistant Community Store
| GitHub API | ok |
|---|---|
| GitHub Content | ok |
| GitHub Web | ok |
| GitHub API Calls Remaining | 5000 |
| Installed Version | 1.32.1 |
| Stage | running |
| Available Repositories | 1416 |
| Downloaded Repositories | 4 |
AccuWeather
| can_reach_server | ok |
|---|---|
| remaining_requests | 29 |
Home Assistant Cloud
| logged_in | false |
|---|---|
| can_reach_cert_server | ok |
| can_reach_cloud_auth | ok |
| can_reach_cloud | ok |
Home Assistant Supervisor
| host_os | Home Assistant OS 11.1 |
|---|---|
| update_channel | stable |
| supervisor_version | supervisor-2024.02.1 |
| agent_version | 1.6.0 |
| docker_version | 24.0.6 |
| disk_total | 30.2 GB |
| disk_used | 24.3 GB |
| healthy | true |
| supported | true |
| board | rpi4-64 |
| supervisor_api | ok |
| version_api | ok |
| installed_addons | Z-Wave JS (0.4.4), Duck DNS (1.15.0), NGINX Home Assistant SSL proxy (3.8.0), File editor (5.8.0), Terminal & SSH (9.9.0), Mosquitto broker (6.4.0), backup-generator (dev), ESPHome (2024.2.1), docker-socket-proxy (dev-0.0.1) |
Dashboards
| dashboards | 2 |
|---|---|
| resources | 2 |
| views | 3 |
| mode | storage |
Recorder
| oldest_recorder_run | November 5, 2023 at 20:33 |
|---|---|
| current_recorder_run | November 5, 2023 at 13:33 |
| estimated_db_size | 621.54 MiB |
| database_engine | sqlite |
| database_version | 3.41.2 |
Anything in the Supervisor logs that might be useful for us?
n/a
Anything in the add-on logs that might be useful for us?
Unfortunately I already restarted my add on :(
Is there a good way for me to recover logs from a previous run?
Additional information
No response