Added ssl functionality