ask.theiotprojects
Secure HTTPS Requests to URL Using NodeMCU ESP8266
Fetching or posting data over the Internet is one of the main core functions of the IoT device. Doing so over HTTP is better implemented in NodeMCU ESP8366 Arduino libraries, but makes things more difficult for HTTPS requests. In this post, I will talk about the most common approaches used by the community and will show you the method to make Secure HTTPS Requests to URL Using NodeMCU ESP8266. No special certificates or fingerprints are required to manually code the program using this method.
HTTPS Requests to URL Using ESP8266- What are CA certificates?
- HTTPS Requests to URL Using Fingerprints - secure but annoying
- HTTPS Requests to URL Using client.setInsecure() - easy but unsafe
- HTTPS Requests to URL with the IoT framework
- Generating a certificate store
- HTTPS Requests to URL Using ESP8266 Source Code
- Conclusion
HTTPS is a method of requesting HTTP over a TLS (formerly SSL) connection. By doing so, the data sent between and behind your computer and server is encrypted and secure. The good news is that this protocol can be used in conjunction with the ESP8266 WiFiClientSecure class. The bad news is those common methods have some major disadvantages.
First I will discuss the two most common methods, and next, I will describe the generic solutions to their problems.
What are CA certificates?
Before diving into the details I will briefly describe the basic principles of secure HTTPS requests in general terms.
Generally, there is a certificate for each website.
Secure HTTPS Requests to URL Using NodeMCU ESP8266
Fetching or posting data over the Internet is one of the main core functions of the IoT device. Doing so over HTTP is better implemented in NodeMCU ESP8366 Arduino libraries, but makes things more difficult for HTTPS requests. In this post, I will talk about the most common approaches used by the community and will show you the method to make Secure HTTPS Requests to URL Using NodeMCU ESP8266. No special certificates or fingerprints are required to manually code the program using this method.
HTTPS Requests to URL Using ESP8266- What are CA certificates?
- HTTPS Requests to URL Using Fingerprints - secure but annoying
- HTTPS Requests to URL Using client.setInsecure() - easy but unsafe
- HTTPS Requests to URL with the IoT framework
- Generating a certificate store
- HTTPS Requests to URL Using ESP8266 Source Code
- Conclusion
HTTPS is a method of requesting HTTP over a TLS (formerly SSL) connection. By doing so, the data sent between and behind your computer and server is encrypted and secure. The good news is that this protocol can be used in conjunction with the ESP8266 WiFiClientSecure class. The bad news is those common methods have some major disadvantages.
First I will discuss the two most common methods, and next, I will describe the generic solutions to their problems.
What are CA certificates?
Before diving into the details I will briefly describe the basic principles of secure HTTPS requests in general terms.
Generally, there is a certificate for each website.