Comments (1)
Nevermind that error. I'll quickly describe how to get rid of that, then close this bug.
I followed outdated advice regarding the generation of keys and cert files. tl;dr:
openssl genpkey -algorithm RSA -out ca.key -aes256
-> ca.key
openssl req -x509 -new -nodes -key ca.key -sha256 -days 400 -out ca.crt
-> ca.crt
openssl genpkey -algorithm RSA -out server.key
openssl genpkey -algorithm RSA -out client.key
-> server.key
-> client.key
openssl req -new -key server.key -out server.csr
openssl req -new -key client.key -out client.csr
-> server.csr
-> client.csr
openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt -days 400 -sha256
openssl x509 -req -in client.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out client.crt -days 400 -sha256
-> server.crt
-> client.crt
and then in mosquitto.conf
:
cafile ca.crt
certfile server.crt
keyfile server.key
require_certificate true
And the client needs a few switches to know the CA, its own cert and key:
mosquitto_sub -h localhost -p 8883 -v -t \# -i some_client --cafile ca.crt --cert client.crt --key client.key
mosquitto_pub -h localhost -p 8883 -t test/test -m test --cafile ca.crt --cert client.crt --key client.key
from mqtt-explorer.
Related Issues (20)
- [FR] WEB Ui of currently running app HOT 1
- Mac OS ARM Beta v0.4.0 not working. HOT 10
- MQTT-Explorer 0.4.0-beta4 SparkplugB decode some strings as "{}" HOT 13
- ui-test: Expand topic does not handle non unique topics
- JavaScript Error When connecting to Localhost
- Incorrect display of long and complex JSON payload HOT 1
- Cannot install on Macos HOT 2
- test.yml using wrong ref
- Option to disable sparkplug autodecode. HOT 1
- Is it possible to clear the chart panels?
- FlashMQ complains about authentication with no username
- is it possible to have a script on mqtt explorer
- Impossible d'installer MQTT-Explorer sur windows 7
- Can not run in mac arm64 HOT 7
- Sorted Topics?
- Impossible to download Microsoft version
- Code Sign
- Graphs for OPEN/CLOSED ?
- client certificate: KEY_VALUES_MISMATCH HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mqtt-explorer.