8월, 2023의 게시물 표시

Mosquitto MQTT Broker SSL Configuration using openssl

이미지
 In this tutorial, I will test how to encrypt the communication between mosquitto MQTT Broker and the client and use a Python example. We will use openssl for certificate and key generation. In the certificate creation task I referred to the mosquitto-tls man page . OpenSSL Process The values I entered in the certificate and key generation process are modified and used appropriately. Generate a certificate authority certificate and key. There is one thing to note. In Common Name, be sure to enter the host name where MQTT Broker is running. In my case the hostname is rocky. [ root@ rocky ssl ] # openssl req -new -x509 -days 73000 -extensions v3_ca -keyout ca.key -out ca.crt Enter PEM pass phrase:bluebaypem Country Name ( 2 letter code ) [ XX ] :kr State or Province Name ( full name ) [] :Seoul Locality Name ( eg, city ) [ Default City ] : Organization Name ( eg, company ) [ Default Company Ltd ] :BluebayNetworks Organizational Unit Name ( eg, section ) [] : Common Na...