Add ssl functionality for localhost