added friendly error message when SSL validation fails