https://www.reddit.com/r/pokemonshowdown/comments/7eix1o/pok...
The problem wasn't just because of the HTTPS cert, but also because it didn't support WebSocket on port 8000.