Skip to content

Puding07/AsyncWebServerTLS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

ESPAsyncWebServer TLS Server Example

Depends on a fixed version of ESPAsyncTCP

Made with the help of tom-ch1 comment

The ESP8266fs plugin tool will be in your help.

Steps to make it work:

  1. Change 0 to 1 at #define ASYNC_TCP_SSL_ENABLED 1 which is at the top of Arduino/libraries/ESPAsyncTCP/src/async_config.h

  2. Generate key pairs (certificate) to data folder in the sketch directory. Don't forget to change CN= with your Domain name in the under lying codes.

  • openssl genrsa -out Key.pem 1024
  • openssl req -x509 -out Cert.pem -key Key.pem -new -sha256 -subj /CN=your.domain -addext "keyUsage=digitalSignature,keyEncipherment" -addext extendedKeyUsage=serverAuth
  1. Upload to Flash memory with ESP8266 SPIFFS uploader plugin. The files size are small so you can choose the smallest allocated memory for SPIFFS in Arduino>tools>ESP8266 Sketch Data Upload.

  2. Upload the sketch to your ESP. The recomended CPU frequency is 160Mhz.

REMEMBER TO ALWAYS GENERATE YOUR OWN KEY PAIRS

For other questions there is a Gitter chat room for the repo.

Do not thank to me, I just created the TLS example based on documentations and a lot of tries.

Thank to me-no-dev and tom-ch1 and jeroenst.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages