Update default certificate of Github (#1322)

So as to enable updates with a payload without the cert, and add a command example. Also so change the update message to notice level
This commit is contained in:
Florian authored and GitHub committed 2022-11-16 15:16:32 -06:00
1 parent f5ce12a641
commit ec21cbb880
3 files changed
+31 -23

No files matched your search

+2 -2
View File
@@ -1867,10 +1867,10 @@ void MQTTHttpsFWUpdate(char* topicOri, JsonObject& HttpsFwUpdateData) {
const char* ota_cert = HttpsFwUpdateData["server_cert"];
if (!ota_cert) {
if (ota_server_cert.length() > 0) {
Log.error(F("using stored cert" CR));
Log.notice(F("using stored cert" CR));
ota_cert = ota_server_cert.c_str();
} else {
Log.error(F("using config cert" CR));
Log.notice(F("using config cert" CR));
ota_cert = OTAserver_cert;
}
}