Update README.md with improved mosquitto configuration instructions

Co-Authored-By: daniele@wolfssl.com <daniele@wolfssl.com>
pr-492
Devin AI 2025-03-14 14:29:37 +00:00
parent 8ba67e2539
commit 1ceb0b39a5
1 changed files with 15 additions and 2 deletions

View File

@ -78,12 +78,25 @@ keyfile ../../../wolfssl/certs/server-key.pem
tls_version tlsv1.3 tls_version tlsv1.3
require_certificate true require_certificate true
use_identity_as_username true use_identity_as_username true
allow_anonymous true
EOF EOF
``` ```
2. Start mosquitto on the TAP interface: 2. Ensure the TAP interface is properly configured:
```bash ```bash
sudo mosquitto -c /etc/mosquitto/conf.d/tls.conf sudo ip addr show tap0
# Should show 10.10.0.1/24 as the IP address
```
3. Start mosquitto on the TAP interface:
```bash
sudo mosquitto -c /etc/mosquitto/conf.d/tls.conf -v
```
4. Verify mosquitto is listening on the correct interface:
```bash
sudo netstat -tuln | grep 8883
# Should show mosquitto listening on 10.10.0.1:8883
``` ```
#### Test MQTT Client #### Test MQTT Client