Comments (5)
I just noticed the same problem. Has something on github changed perhaps?
from m5ez.
from m5ez.
I'm thinking that GitHub has changed something in their URL's that is breaking this. I'll see if I can figure it out. If not I'm also pursuing using some other OTA code. Fortunately I haven't deployed my system yet, but in another month this would be a much larger problem. I'll let you know what I did.
Martin
from m5ez.
OK, I fixed the example. You have to regenerate the .h file using get_cert. Probably the github certificate changed so the old .h didn't work. I also noticed that the documentation has a minor error. I says you need opensll, but that is of course openssl.
I haven't tried my own updater yet, but I suspect I need to update the .h file. This is of course a huge problem if you have deployed systems. You need to install newly compiled binary using the new .h file before you can OTA new firmware! I'm not enough of an expert on certificates to know if there is some way around this. One kludgy way might be to include the .h contents on an SD card and read it in instead of compiling it in. There is an SD reader so that could be done. I don't know how often this will be a problem with needing new certificate info. Any experts out there with better ideas?
from m5ez.
Certificate expiry and embedded devices: an industry-wide unsolved problem. See for example this news story that is just a week old.
A solution is to put your updates on a server/VPS you control and use a certificate with your own root that expires in the year 7000. Here's a thread about why certificate expiry is overrated anyway. But then use that cert only on an update binaries subdomain that doesn't need to to ever be served to actual browsers, because they won't like you using your own root cert.
from m5ez.
Related Issues (20)
- Upgraded now wont complile HOT 1
- Trying to stop NTP polling HOT 1
- Hangs - Suggestions on troubleshooting? HOT 1
- Added a few new functions to my branch
- Recieving and Sending Bluetooth Commands
- Reading SD card HOT 2
- up and down autorepeat
- change header title
- Demo sysinfo shows wrong SD card size.
- Two more features needed HOT 1
- crash/reboot in writing to SPI?!
- No need for Serial.begin()
- Errors installing from arduino ide and .zip HOT 2
- buttons automatically scroll up (A btn event without pressing)
- ez.events not running HOT 2
- Events are not executed when screen is off HOT 2
- port to M5Paper HOT 1
- M5Stack Basic (black) uSD card fails
- COMPILATION ERROR HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from m5ez.