Added ssl support.