Always switch SSL modes if necessary.