Moved all ssl stuff to subclass