-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTPS service #6
Comments
So complete and total SSL noob here... I generated a public and root certificates using ESP32 HTTPS Server and OpenSSL on my Macbook Pro. And I am able to serve static content over HTTPS. Am I not supposed to commit these certificates to the repository? If so, how do I get them into the clock to be used by the HTTPS Server? -Frank |
A root certificate is a bit of an overkill here. SSL certificates do two things: Firstly, they are used for encryption: So - thats the theory. What does this mean for small DIY projects? You already found Frank Hessel's library, which seems to be the easiest approach. I believe Mac OS does include OpenSSL, so basically a single |
Thank you for the complete explanation of SSL and security keys. I finished making the changes to use Hessel's library and it works. Chrome gives me access to the WebRTC APIs. My code creates self-signed certificates at setup. The only downside I see is it slows the setup time - it can take up to a minute to generate the certificates. I need to see how to generate the self-signed certs once at compile time and reuse them. |
I have in mind a new feature that uses the browser WebRTC API to capture a still images from a video stream from your mobile phone or laptop camera, then uploads it in JPG format to the clock's SPIFFS file system. Unfortunately, Chrome only allows this over an HTTPS connection.
I found
ESP32 HTTPS Server
by Frank Hessel fhessel, v1.0.0. It's just what is says it is. I am going to remove the ESP32 Webserver library and add Hessel's library. I'm not sure how I am going to handle the server-side certificates - one possibility is to self-generate a certificate on start-up.This will also help to transmit form data - for example, Wifi passwords - securely.
The text was updated successfully, but these errors were encountered: