moved https check to better (more tolerant of out-of-date certificates) check_https