Browse Source

new ota key

main
Hendrik Langer 5 years ago
parent
commit
d3ae96895f
  1. 45
      src/network/XD0OTA.h

45
src/network/XD0OTA.h

@ -22,31 +22,30 @@ class XD0OTA {
private: private:
String deviceName; String deviceName;
const char* fwUrlBase = "https://fwupdate.xd0.de:444/fota/"; const char* fwUrlBase = "https://fwupdate.xd0.de:444/fota/";
const char* httpsFingerprint = "37 42 61 B9 E6 EE 22 36 D1 59 67 7D 55 53 6E A4 C7 AA 60 26"; const char* httpsFingerprint = "0D 65 0C 18 81 95 32 48 5D FA 25 9F D5 AD AC 7B FB 70 0F 8A";
const char* rootCACertificate = \ const char* rootCACertificate = \
"-----BEGIN CERTIFICATE-----\n" \ "-----BEGIN CERTIFICATE-----\n" \
"MIID8DCCAtigAwIBAgIJAPSONy8RRejRMA0GCSqGSIb3DQEBCwUAMIGLMQswCQYD\n" \ "MIIDyzCCArOgAwIBAgIUJsJfCOA4jhaFLssvx2Qyn8Zz6XUwDQYJKoZIhvcNAQEL\n" \
"VQQGEwJERTEeMBwGA1UECAwVTm9ydGhyaGluZS1XZXN0cGhhbGlhMQ4wDAYDVQQH\n" \ "BQAwdDELMAkGA1UEBhMCREUxHzAdBgNVBAgMFk5vcnRoIFJoaW5lLVdlc3RwaGFs\n" \
"DAVFc3NlbjEPMA0GA1UECgwGeGQwLmRlMRgwFgYDVQQDDA9md3VwZGF0ZS54ZDAu\n" \ "aWExDzANBgNVBAoMBnhkMC5kZTEYMBYGA1UEAwwPZnd1cGRhdGUueGQwLmRlMRkw\n" \
"ZGUxITAfBgkqhkiG9w0BCQEWEmhlbmRyaWsrZGV2QHhkMC5kZTAgFw0xODA2MTYx\n" \ "FwYJKoZIhvcNAQkBFgpkZXZAeGQwLmRlMCAXDTIwMDEwNDE3NTQwN1oYDzIwNzAw\n" \
"MTAzMTVaGA8yMDY4MDYxNjExMDMxNVowgYsxCzAJBgNVBAYTAkRFMR4wHAYDVQQI\n" \ "MTA0MTc1NDA3WjB0MQswCQYDVQQGE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OKg2YfEm/\n" \
"D5Npv9M5363apnO1VlVR+OuO1NEJusRK1aWk9RLZsTPxzwOWwdkifXxUEJ+f8mGn\n" \ "fF8Uktfoam4FUPXaO++n\n" \
"o+6SCw==\n" \
"-----END CERTIFICATE-----\n"; "-----END CERTIFICATE-----\n";
String getUpdateURL(String file, String extension); String getUpdateURL(String file, String extension);
void setClock(void); void setClock(void);

Loading…
Cancel
Save