Depends on ESPAsyncWebServer
Depends on a fixed version of ESPAsyncTCP
The ESP8266fs plugin tool will be in your help.
Change 0 to 1 at #define ASYNC_TCP_SSL_ENABLED 1 which is at the top of Arduino/libraries/ESPAsyncTCP/src/async_config.h
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
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.
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.