The chat responses are generated using Generative AI technology for intuitive search and may not be entirely accurate. They are not intended as professional advice. For full details, including our use rights, privacy practices and potential export control restrictions, please refer to our Generative AI Service Terms of Use and Generative AI Service Privacy Information. As this is a test version, please let us know if something irritating comes up. Like you get recommended a chocolate fudge ice cream instead of an energy managing application. If that occurs, please use the feedback button in our contact form!
Skip to content
Industrial IoT Open Source Tools and Libraries

Demo applications, libraries and SDKs as well as useful connectivity tools which are maintained and released as open source software.

mdsp mqtt-createjwt Command¶

Syntax:

mdsp mqtt-createjwt

Help:

mdsp mqtt-createjwt --help

Alternative form:

mc mqtt-createjwt

(The CLI was using mc as default command name in older versions)

Description¶

creates a signed token for opcua pub sub authentication #

Usage¶

Parameter list:

Usage: mdsp mqtt-createjwt|jw [options]

creates a signed token for opcua pub sub authentication #

Options:
 -i, --clientid MQTT ClientId (default: "1cabd2d8-7b54-4ccd-b963-e3a0813375c1")
 -e, --expiration time until the token is valid in seconds (default: "3600")
 -c, --rootca path to CA root certificate (default: "CA-root.pem")
 -d, --devicecrt path to device certificate (default: "device.crt.pem")
 -k, --devicekey path to device certificate key (default: "device.key.pem")
 -p, --passphrase [passphrase] passphrase for device certificate key
 -n, --intermediate [intermediate] intermediate ca
 -t, --tenant [tenant] tenant name
 -v, --verbose verbose output
 -h, --help display help for command

Examples¶

Here are some examples of how to use the mdsp mqtt-createjwt command:

 Examples:

 mdsp mqtt-createjwt --clientid "12345...ef" \
 --rootca path/to/root.cer.pem \
 --devicecrt path/to/device.cer.pem \
 --devicekey path/to/devicekey.pem \
 --passphrase "device key passphrase" \
 --tenant yourtenant

 More Information: 

 https://developer.mindsphere.io/howto/howto-connect-via-mqtt.html#security-concept-onboarding-certificatebearer

See Insights Hub API documentation for more information about Insights Hub APIs.