finally have ssl working