|
When you set the environment variable using the configuration files options and then set it again using the SSL/TLS options, the values set for the configuration files are retained. You are just adding the SSL/TLS options. If desired, you could combine the configuration file options with the SSL/TLS options in one long command.
|
|
This section assumes that you have followed the steps in
Step 8. Encrypt the Configuration File for creating the configuration file for the encryption library and then encrypting the Connector's configuration file.
|
|
In the command-line examples above, line feeds have been added for publishing purposes. If you want to copy/paste the commands, first paste them into a text editor and remove the line feeds. Then copy into your shell or Command Prompt window. There should be a space between the end of a -D entry and the beginning of the next one.
|
|
Make sure that you do NOT use double quotation marks when setting the environment variable on Windows. If you use them, the Connector will fail to start.
|
Parameter
|
Description
|
---|---|
-Dsecret.management.config.file
|
To tell the Azure IoT Hub Connector what configuration file to use when decrypting the Azure IoT Hub credentials sent by the ThingWorx Platform, set this parameter to <your-connector-config-path>/encryption.conf. This parameter specifies the full path to the configuration file for the encryption library. If you have not created this file, refer to
Step 7. Set Up Encryption for Azure IoT Hub Credentials.
|
-Dconfig.plaintext
|
Set this parameter to true to tell the Connector that its configuration file is not encrypted.
|
-Dconfig.file
|
Specify the location and name of the configuration file for the Connector: <your-connector-config-path/azure-iot.conf.
|
-Dlogback.configurationFile
|
Specify the full path to the configuration file for Logback. To customize the logback.xml file, refer to
Logging. For more information about configuring Logback, visit
http://logback.qos.ch/manual/index.html.
|
|
Make sure that you do NOT use double quotation marks when setting the environment variables on Windows. If you use them, the Connector will fail to start.
|
|
In the command-line examples above, line feeds have been added for publishing purposes. If you want to copy/paste the commands, first paste them into a text editor and remove the line feeds. Then copy into your shell or Command Prompt window. There should be a space between the end of a -D entry and the beginning of the next one.
|
|
In the command-line examples above, line feeds have been added for publishing purposes. If you want to copy/paste the commands, first paste them into a text editor and remove the line feeds. Then copy into your shell or Command Prompt window. There should be a space between the end of a -D entry and the beginning of the next one.
|
|
Make sure that you do NOT use double quotation marks when setting the environment variable on Windows. If you use them, the Connector will fail to start.
|