diff --git a/src/XD0OTA.h b/src/XD0OTA.h index 63e0bc5..9fd52eb 100644 --- a/src/XD0OTA.h +++ b/src/XD0OTA.h @@ -14,7 +14,7 @@ class XD0OTA { void update(void); int checkForUpdates(); private: - const char* fwUrlBase = "https://fwupdate.xd0.de/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"; String getMAC(); }; @@ -24,20 +24,23 @@ class XD0OTA { /* +MAKE SURE TO RESET THE ESP8266 ONCE AFTER NORMAL FLASHING! OTHERWISE OTA WON'T WORK! + + openssl req -x509 -nodes -days 18263 -newkey rsa:2048 -keyout /etc/ssl/private/xd0-fwupdate-selfsigned.key -out /etc/ssl/certs/xd0-fwupdate-selfsigned.crt openssl x509 -noout -fingerprint -sha1 -inform pem -in /etc/ssl/certs/xd0-fwupdate-selfsigned.crt server { - listen 443 ssl; - listen [::]:443 ssl; + listen 444 ssl; + listen [::]:444 ssl; server_name fwupdate.xd0.de; # SSL configuration ssl_certificate /etc/ssl/certs/xd0-fwupdate-selfsigned.crt; ssl_certificate_key /etc/ssl/private/xd0-fwupdate-selfsigned.key; - #ssl_buffer_size 4k; + ssl_buffer_size 4k; root /var/www/fwupdate;