Implements ssl support.