Creating self-signed device certificates is semi-automated and only takes a few seconds.
Running the included Python script, ".\CertificateTool\mosquittoCSR.py" will create the required
-
Windows 10 or later.
-
Python 3.10.11 or later. Other versions may work, but have not been tested.
- Select "Add python.exe to PATH during installation [Recommended]
-
Windows Terminal (
cmd.exe
A better version ofcmd.exe
) [Optional]
-
Open a command prompt in the folder
...\RNWFxx_Python_OOB\tools\CertificateTool
-
Execute the Python script with the command line:
python mosquittoCSR.py
-
If the script detects missing required Python modules, the user will be prompted to install them.
Once installed, rerun the script to proceed.
-
Next the user is prompted to verify the default certificate settings.
-
At the next prompt, open the displayed link in a browser and press [ENTER].
-
Press [ENTER] to complete the certificate creation process.
-
The final screen should appear as shown.
Take note of Option 1. The "CSR" created, has already been copied to your clipboard!
test.mosquitto.org TLS Cert Tool open in a browser.
Right-Click in the control and paste the 'CSR' text from the clipboard.
OR
Open the fileClientCSR.pem
file, copy the contents from a text editor and then paste.ClientCSR.pem
pasted into the tool.
Then pressSubmit
At the file save prompt, select a folder of your choice and save the file with the name ...\RNWFxx_Python_OOB\tools\CertificateTool\ClientCert.crt
-
The final step is to download the mosquitto.org.crt certificate.
-
Click on the hyperlink above for a direct download of the
mosquitto.org.crt
certificate.OR
-
Navigate to the test.mosquitto.org web site and click on the
PEM Format
certificate link.
-