Switching to https protocol