Last active
January 22, 2021 08:29
-
-
Save mohavirta/0e3b2948afbe73a6d64b26574f07e7e7 to your computer and use it in GitHub Desktop.
Teltonika TRB14x MQTT broker bridge, make client certificate and key optional
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Naur a/package/network/services/mosquitto/files/etc/init.d/mosquitto b/package/network/services/mosquitto/files/etc/init.d/mosquitto | |
--- a/package/network/services/mosquitto/files/etc/init.d/mosquitto 2021-01-21 14:54:31.468052585 +0200 | |
+++ b/package/network/services/mosquitto/files/etc/init.d/mosquitto 2021-01-21 14:57:50.782195175 +0200 | |
@@ -125,7 +125,7 @@ | |
# Use TLS/SSL for bridge connection | |
if [ "$use_remote_tls" == "1" ]; then | |
echo "bridge_cafile $bridge_ca_file" >> $CONFIG | |
- echo "bridge_certfile $bridge_cert_file" >> $CONFIG | |
+ [ -n "$bridge_cert_file" ] && echo "bridge_certfile $bridge_cert_file" >> $CONFIG | |
[ -n "$bridge_key_file" ] && echo "bridge_keyfile $bridge_key_file" >> $CONFIG | |
echo "bridge_tls_version $bridge_tls_version" >> $CONFIG | |
if [ "$bridge_insecure" = "1" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment