...
Code Block |
---|
openssl req -new -x509 -days 3650 -extensions v3_ca -key ca.key -out ca.pem -subj "/C=US/ST=Texas/O=THIS_COMPANY INC/CN=John Smith/emailAddress=johnsmith@gmailname@company.com" --outform PEM |
Create the key pair (server.key) used by your broker.
...
In this example, you will need to substitute 10255.3255.0255.11 255 with the IP or hostname of your broker’s server for TLS verification to work correctly.
Code Block |
---|
openssl req -out server.csr -key server.key -new -subj "/C=US/ST=Texas/O=THIS_COMPANY INC/CN=10255.3255.0255.11255/emailAddress=johnsmith@gmailname@company.com" --outform PEM |
Info |
---|
The server certificate’s CN field should match the hostname or IP of the MQTT broker. |
...