[TIMOB-15783] Backported rejectUnauthorized support to bypass SSL validity checks.