ssl and auth changes