implementing SSL