mirror of https://github.com/arendst/Tasmota.git
Transparent default value for MqttFingerprint2
I was unable to find any information on where the existing default MqttFingerprint2 value came from, and can't be sure that someone doesn't have a key matching it. For transparency, this patch replaces the default MqttFingerprint2 value with the result of SHA1("Tasmota") as a "nothing-up-my-sleeve number".
This commit is contained in:
parent
696d91cdd5
commit
c0c19ea3da
|
@ -97,8 +97,8 @@
|
|||
#define MQTT_USE true // [SetOption3] Select default MQTT use (false = Off, true = On)
|
||||
|
||||
#define MQTT_HOST "" // [MqttHost]
|
||||
#define MQTT_FINGERPRINT1 "00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00" // [MqttFingerprint1]
|
||||
#define MQTT_FINGERPRINT2 "A5 02 FF 13 99 9F 8B 39 8E F1 83 4F 11 23 65 0B 32 36 FC 07" // [MqttFingerprint2]
|
||||
#define MQTT_FINGERPRINT1 "00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00" // [MqttFingerprint1] (auto-learn)
|
||||
#define MQTT_FINGERPRINT2 "DA 39 A3 EE 5E 6B 4B 0D 32 55 BF EF 95 60 18 90 AF D8 07 09" // [MqttFingerprint2] (invalid)
|
||||
#define MQTT_PORT 1883 // [MqttPort] MQTT port (10123 on CloudMQTT)
|
||||
#define MQTT_USER "DVES_USER" // [MqttUser] MQTT user
|
||||
#define MQTT_PASS "DVES_PASS" // [MqttPassword] MQTT password
|
||||
|
|
|
@ -114,8 +114,8 @@ String EthernetMacAddress(void);
|
|||
// Set an all-zeros default fingerprint to activate auto-learning on first connection (AWS IoT)
|
||||
#define MQTT_FINGERPRINT1 "00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00"
|
||||
#endif
|
||||
#ifndef MQTT_FINGERPRINT2
|
||||
#define MQTT_FINGERPRINT2 "A5 02 FF 13 99 9F 8B 39 8E F1 83 4F 11 23 65 0B 32 36 FC 07"
|
||||
#ifndef MQTT_FINGERPRINT2 // SHA1('')
|
||||
#define MQTT_FINGERPRINT2 "DA 39 A3 EE 5E 6B 4B 0D 32 55 BF EF 95 60 18 90 AF D8 07 09"
|
||||
#endif
|
||||
|
||||
#ifndef WS2812_LEDS
|
||||
|
|
Loading…
Reference in New Issue