Fix https url, certificate check