I have a MQTT broker on my VPS, I enabled SSL using letsencrypt, right now eveything is working I am using this code on my ESP8266 devices:
// Load Wi-Fi lib