Changed the ssl socket setup, the way I was doing it before was dumb