table of contents
- bookworm 2.0.11-1.2+deb12u1
- bookworm-backports 2.0.18-1~bpo12+1
- testing 2.0.18-1.1
- unstable 2.0.20-1
MOSQUITTO-TLS(7) | Conventions and miscellaneous | MOSQUITTO-TLS(7) |
NAME¶
mosquitto-tls - Configure SSL/TLS support for Mosquitto
DESCRIPTION¶
mosquitto provides SSL support for encrypted network connections and authentication. This manual describes how to create the files needed.
Note
It is important to use different certificate subject parameters for your CA, server and clients. If the certificates appear identical, even though generated separately, the broker/client will not be able to distinguish between them and you will experience difficult to diagnose errors.
GENERATING CERTIFICATES¶
The sections below give the openssl commands that can be used to generate certificates, but without any context. The asciicast at https://asciinema.org/a/201826 gives a full run through of how to use those commands.
CERTIFICATE AUTHORITY¶
Generate a certificate authority certificate and key.
SERVER¶
Generate a server key.
Generate a server key without encryption.
Generate a certificate signing request to send to the CA.
Note
When prompted for the CN (Common Name), please enter either your server (or broker) hostname or domain name.
Send the CSR to the CA, or sign it with your CA key:
CLIENT¶
Generate a client key.
Generate a certificate signing request to send to the CA.
Send the CSR to the CA, or sign it with your CA key:
SEE ALSO¶
mosquitto(8), mosquitto-conf(5)
AUTHOR¶
Roger Light <roger@atchoo.org>
11/28/2019 | Mosquitto Project |