Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verschlüsselte Verbindung aufbauen #11

Open
ChrisLasar opened this issue Sep 24, 2019 · 1 comment
Open

Verschlüsselte Verbindung aufbauen #11

ChrisLasar opened this issue Sep 24, 2019 · 1 comment

Comments

@ChrisLasar
Copy link
Contributor

Hi,
reichen die beiden Einträge

certfile /etc/config/server.pem
keyfile /etc/config/server.pem

wirklich für eine verschlüsselte Verbindung?
Benötige ich nicht noch einen Eintrag cafile <ca.crt>?

Das <ca.crt> verwende ich doch dann auch auf dem Client, oder? Woher bekomme ich die Datei? Wer ist der CA?

@mattison16
Copy link

Hallo,
es wird auch noch ein Eintrag cafile benötigt:

cafile /etc/config/server.pem
certfile /etc/config/server.pem
keyfile /etc/config/server.pem

Aus der Doku:
At least one of cafile or capath must be provided to enable SSL support.

Wäre schön, wenn die listener-mqtts.conf noch um die Zeile erweitert werden könnte.

Ohne die Zeile wird ein unverschlüsselter LISTENER auf dem Port geöffnet!

Wenn der Client, z.B. mosquitto_pub, eine CA für das Broker Zertifikat benötigt, kann man das Zertifikat aus der /etc/config/server.pem extrahieren (ist ein einfaches Text File) und auf den Client bringen und im Aufruf --cafile <hm.crt> übergeben.
Wenn es ein anderer Client ist, z.B. Microcontroler, liegt es an der Programmierung wie man das Zertifikat des MQTT Brokers für sicher erklärt.
Viele Grüße Mattison

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants