Q: Can the ESP8266 operate over the internet?
A: Technically yes however TLS encryption of MLS is problematic due to hardware constraints so it should not be used for situations where security is needed. Instead use the ESP32 which has better support for MQTT/TLS