![]() In this example the ClientID is 6d69c58223fb44a7b76ae61a18faf37cCreate MQTT Client1. Get Client ID for future use within MQTT topics using Git Bash.Open a Git Bash window and type in the following command:openssl x509 -noout -subject -in clientCert.crt -nameopt multiline | grep commonName | sed -r 's/commonName/ /g' | sed -r 's/=/ /g' | xargs | tr -d " \t\n\r" Copy the received signed certificate and save as a file (e.g., clientCert.crt) for future use.Open a command prompt window (as an administrator) and publish the csr.pemmosquitto_pub -h localhost -p 18883 -cafile "C:\Program Files (x86)\Teamviewer\certs\TeamViewerAuthority.crt" -t /v1.0/createClient -f csr.pemĤ. The signed certificate will be sent back here in the subscribe topic (this cmd window). Request a client certificate using Command Prompt.Open a Command Prompt window (run as an administrator) and subscribe for the response:mosquitto_sub -h localhost -p 18883 -cafile "C:\Program Files (x86)\Teamviewer\certs\TeamViewerAuthority.crt" -t /certBack/83a32b8cbae161ab995b1d3bce24715579c4c672f69ca48a24350baaaed40d17 ![]() It is the SHA-256, which will be used in subscribe topicOpen a Git Bash window and type in the following command:openssl dgst -sha256 csr.pem ![]() Generate A CSR using Git BashOpen a Git Bash window and type in the following command:openssl req -nodes -new -newkey rsa:2048 -sha256 -out csr.pemĢ. Add Mosquitto installation path to Environment Variables.Install Git Bash for Windows, this is needed to create CSR and Request Client CertificateAdvanced knowledge of Windows systems and command line operations.SetupCreate MQTT Client1. To log in to the IoT Management Console, open and use your TeamViewer account credentials.Mosquitto is installed. This example provides a quick overview of how to use the TeamViewer IoT Agent MQTT API to securely (encrypted and trusted) connect, to register sensors and metrics, to view device inventory, and to push data to the TeamViewer IoT Cloud.For more information see TeamViewer IoT Agent MQTT API.What you will needThe edge device is set up with a TeamViewer IoT Host or Windows (TeamViewer Service and Mosquitto broker process running) and has internet access.Your login credentials for the edge device (user name, and password).You are logged in to the IoT Management Console. Example: Connect a sensor to the Teamviewer IoT Host for Windows - TeamViewer Support
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |