re-add SSL cert check